Adds battery

This commit is contained in:
2025-04-15 22:50:20 +02:00
parent 3456c5ec2f
commit 3f8d4a32f9
3 changed files with 42 additions and 7 deletions
+9 -4
View File
@@ -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
}
}