Update .config/sway/config

This commit is contained in:
V 2022-11-26 02:36:26 +04:00
parent 5996cd130c
commit 745ccdd2e7
1 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,5 @@
# Font
font Cascadia Code 10
font Cascadia Code 9
# Remove title
default_border pixel 2
@ -222,9 +222,8 @@ bar {
position top
# 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 %);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