eww
This commit is contained in:
parent
863b0522ec
commit
6c4b9dab68
5 changed files with 72 additions and 22 deletions
7
modules/wm/hyprland/config/eww/scripts/battery.sh
Executable file
7
modules/wm/hyprland/config/eww/scripts/battery.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
cap=$(cat /sys/class/power_supply/BAT1/capacity)
|
||||
|
||||
charge=$(cat /sys/class/power_supply/BAT1/status)
|
||||
|
||||
[[ $charge == "Discharging" ]] && echo -$cap% || echo +$cap%
|
||||
Loading…
Add table
Add a link
Reference in a new issue