1
0
forked from extern/nix-config

waybar: Add memory module

Note that this may be considered bloat but it's good for now. When
focusing it's easy to press ctrl+o to hide waybar anyway.
This commit is contained in:
Donovan Glover 2022-03-25 09:59:51 -04:00
parent b699e2b784
commit ac6d609bf2
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 6 additions and 2 deletions

View File

@ -2,7 +2,7 @@
"height": 30,
"modules-left": ["sway/workspaces", "sway/mode", "tray"],
"modules-center": ["sway/window"],
"modules-right": ["pulseaudio", "network", "backlight", "battery", "clock"],
"modules-right": ["pulseaudio", "network", "backlight", "memory", "battery", "clock"],
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
@ -17,6 +17,10 @@
"format": "{icon} {percent}%",
"format-icons": ["", ""]
},
"memory": {
"interval": 30,
"format": " {}%"
},
"battery": {
"states": {
"warning": 20,

View File

@ -23,7 +23,7 @@ window#waybar {
background: @color8;
}
#mode, #pulseaudio, #network, #backlight, #clock, #battery {
#mode, #pulseaudio, #network, #backlight, #memory, #clock, #battery {
padding: 0 5px;
margin: 0 5px;
}