Update .config/sway/config
This commit is contained in:
parent
745ccdd2e7
commit
9801862920
|
@ -223,7 +223,7 @@ bar {
|
||||||
|
|
||||||
# When the status_command prints a new line to stdout, swaybar updates.
|
# 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 "B:${bstr} 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 %);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 "B:${bstr} 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
|
#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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue