diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-10-28 17:05:47 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-10-28 17:05:47 +0300 |
commit | 4df63a595e8686102a8dc2a59561e1d554861f56 (patch) | |
tree | b2c85cf336471535f183e8f1378dd9cf660db492 | |
parent | 32f2ff63815109f36eb32e740d0a023bd29daa59 (diff) | |
download | dwmblocks-4df63a595e8686102a8dc2a59561e1d554861f56.tar.gz |
-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}, }; |