diff options
Diffstat (limited to 'home/xyz')
-rwxr-xr-x | home/xyz/.local/bin/sbar | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/home/xyz/.local/bin/sbar b/home/xyz/.local/bin/sbar index de27cac7..9bb08b88 100755 --- a/home/xyz/.local/bin/sbar +++ b/home/xyz/.local/bin/sbar @@ -32,14 +32,19 @@ update_bat () { bat="$(cat /sys/class/power_supply/BAT0/capacity)%" } +update_gpu () { + gpu="$(envycontrol --status | awk 'END{print toupper(substr($NF,0,1))}')" +} + display () { - xsetroot -name "$time | N $net V $vpn | M $vol C $mic | $bat" + xsetroot -name "$time | N $net V $vpn | M $vol C $mic | $gpu | $bat" } # modules that don't update on their own need to be run at the start for getting their initial value update_net update_vol update_mic +update_gpu # SIGNALLING # trap "<function>;display" "RTMIN+n" |