From 5996cd130ce6f79a8e0e18000a1d37de3f120116 Mon Sep 17 00:00:00 2001 From: V Date: Sat, 26 Nov 2022 02:33:52 +0400 Subject: [PATCH] Update .config/sway/config --- dot_config/sway/config.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_config/sway/config.tmpl b/dot_config/sway/config.tmpl index b178df6..cd9d328 100644 --- a/dot_config/sway/config.tmpl +++ b/dot_config/sway/config.tmpl @@ -224,7 +224,7 @@ bar { # When the status_command prints a new line to stdout, swaybar updates. # The default just shows the current date and time. #status_command while cat /sys/class/power_supply/BAT0/capacity | sed "s/^/B:/";do sleep 1B; done - status_command while {{ if eq .chezmoi.hostname "laptop" }}lstr=$(brightnessctl -m | cut -d, -f4 | tr -d %);{{ end }}vstr=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | cut -d' ' -f2);dstr=$(date +'%Y-%m-%d %H:%M:%S');echo "L:{$lstr} V:${vstr} ${dstr}"; do sleep 1; done + status_command while {{ if eq .chezmoi.hostname "laptop" }}lstr=$(brightnessctl -m | cut -d, -f4 | tr -d %);{{ end }}vstr=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | cut -d' ' -f2);dstr=$(date +'%Y-%m-%d %H:%M:%S');echo "L:${lstr} V:${vstr} ${dstr}"; do sleep 1; done #status_command while (date +'%Y-%m-%d %I:%M:%S %p'| tr '\n' ' ' && cat /sys/class/power_supply/BAT0/capacity | sed "s/^/B:/";); do sleep 1; done