Adds battery
This commit is contained in:
+9
-4
@@ -19,9 +19,9 @@
|
||||
"hyprland/workspaces",
|
||||
"custom/cpu",
|
||||
"custom/mem",
|
||||
"battery",
|
||||
"custom/battery",
|
||||
"tray",
|
||||
"clock",
|
||||
"clock"
|
||||
],
|
||||
"hyprland/window": {
|
||||
"format": "{}",
|
||||
@@ -136,11 +136,16 @@
|
||||
"spacing": 5
|
||||
},
|
||||
"custom/cpu": {
|
||||
"exec": "head -n 1 ~/.config/dotfiles/hypr/.stat.txt",
|
||||
"exec": "sed '1q;d' ~/.config/dotfiles/hypr/.stat.txt",
|
||||
"restart-interval": 2
|
||||
},
|
||||
"custom/mem": {
|
||||
"exec": "tail -n 1 ~/.config/dotfiles/hypr/.stat.txt",
|
||||
"exec": "sed '2q;d' ~/.config/dotfiles/hypr/.stat.txt",
|
||||
"restart-interval": 2
|
||||
},
|
||||
"custom/battery": {
|
||||
"exec": "sed '3q;d' ~/.config/dotfiles/hypr/.stat.txt",
|
||||
"return-type": "json",
|
||||
"restart-interval": 2
|
||||
}
|
||||
}
|
||||
|
||||
+15
-2
@@ -100,8 +100,9 @@ button:hover {
|
||||
#pulseaudio,
|
||||
#idle_inhibitor,
|
||||
#custom-cpu,
|
||||
#custom-mem {
|
||||
padding: 0 5px;
|
||||
#custom-mem,
|
||||
#custom-battery {
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
#custom-cpu {
|
||||
@@ -112,6 +113,18 @@ button:hover {
|
||||
color: @blue;
|
||||
}
|
||||
|
||||
#custom-battery.charging {
|
||||
color: @green;
|
||||
}
|
||||
|
||||
#custom-battery.low {
|
||||
color: @yellow;
|
||||
}
|
||||
|
||||
#custom-battery.critical {
|
||||
color: @red;
|
||||
}
|
||||
|
||||
#network {
|
||||
color: @yellow;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user