diff --git a/dot_config/sway/config.tmpl b/dot_config/sway/config.tmpl index 71be10c..62af2e4 100644 --- a/dot_config/sway/config.tmpl +++ b/dot_config/sway/config.tmpl @@ -223,7 +223,7 @@ bar { # When the status_command prints a new line to stdout, swaybar updates. - status_command while {{ if eq .chezmoi.hostname "laptop" }}lstr=$(brightnessctl -m | cut -d, -f4 | tr -d %);bstr=$(cat /sys/class/power_supply/BAT0/capacity);{{ end }}vstr=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | cut -d' ' -f2);dstr=$(date +'%Y-%m-%d %H:%M:%S');echo "{{if eq .chezmoi.hostname "laptop"}}B:${bstr} L:${lstr} {{end}}V:${vstr} ${dstr}"; do sleep 1; done + status_command while {{ if eq .chezmoi.hostname "laptop" }}lstr=$(brightnessctl -m | cut -d, -f4 | tr -d %);bstr=$(cat /sys/class/power_supply/BAT0/capacity);{{ end }}vstr=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | cut -d' ' -f2);dstr=$(date +'%Y-%m-%d %H:%M:%S');echo "{{if eq .chezmoi.hostname "laptop"}}B${bstr} L${lstr} {{end}}V${vstr} ${dstr}"; do sleep 1; done colors { statusline #ffffff