[Newm] Prettier bar icons
This commit is contained in:
parent
cdddacbecb
commit
0402c048a3
@ -221,12 +221,12 @@ def unread_emails() -> str:
|
|||||||
|
|
||||||
def cpu_usage() -> str:
|
def cpu_usage() -> str:
|
||||||
cpu: str = format(psutil.cpu_percent(interval=None), ".1f")
|
cpu: str = format(psutil.cpu_percent(interval=None), ".1f")
|
||||||
return f"CPU: {cpu}%"
|
return f" {cpu}%"
|
||||||
|
|
||||||
|
|
||||||
def mem_usage() -> str:
|
def mem_usage() -> str:
|
||||||
mem: str = format(psutil.virtual_memory().percent, ".1f")
|
mem: str = format(psutil.virtual_memory().percent, ".1f")
|
||||||
return f"RAM: {mem}%"
|
return f" {mem}%"
|
||||||
|
|
||||||
|
|
||||||
def right_text() -> str:
|
def right_text() -> str:
|
||||||
@ -256,13 +256,14 @@ panels = {
|
|||||||
"launcher": {"cmd": "kitty -e newm-panel-basic launcher"},
|
"launcher": {"cmd": "kitty -e newm-panel-basic launcher"},
|
||||||
"top_bar": {
|
"top_bar": {
|
||||||
"native": {
|
"native": {
|
||||||
|
"font": "JetBrainsMono Nerd Font",
|
||||||
"enabled": True,
|
"enabled": True,
|
||||||
"texts": lambda: [
|
"texts": lambda: [
|
||||||
"",
|
"",
|
||||||
center_text(),
|
center_text(),
|
||||||
right_text(),
|
right_text(),
|
||||||
],
|
],
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"bottom_bar": {
|
"bottom_bar": {
|
||||||
"native": {
|
"native": {
|
||||||
|
Loading…
Reference in New Issue
Block a user