From 4df63a595e8686102a8dc2a59561e1d554861f56 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 28 Oct 2022 17:05:47 +0300 Subject: feat: add user and AC connection --- blocks.def.h | 2 ++ 1 file changed, 2 insertions(+) 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}, }; -- cgit v1.2.3