diff options
-rw-r--r-- | blocks.def.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/blocks.def.h b/blocks.def.h index 830704b..c513d7e 100644 --- a/blocks.def.h +++ b/blocks.def.h @@ -4,7 +4,9 @@ static const Block blocks[] = { {"", "xkblayout-state print %s", 0, 4}, {"", "[ $(pulsemixer --get-mute) = 1 ] && echo 🔇 && exit || echo $(pulsemixer --get-volume | cut -f 1 -d ' ')%", 0, 2}, {" ", "wpa_cli status | grep ^ssid= | sed 's/ssid=//'", 15, 0}, + {" ", "whoami", 0, 0}, {" ", "echo $(cat /sys/class/power_supply/BAT0/capacity)%", 30, 0}, + {" ", "export ONLINE=$(cat /sys/class/power_supply/ADP1/online) && [ $ONLINE -eq 0 ] && echo ﮤ", 30, 0}, {" ", "date '+%a, %d.%m.%Y %H:%M:%S'", 1, 0}, }; |