use_spacer none
TEXT
-S %{F\#ffcf0f38}⮠ %{F\#fffefdfb}${wireless_essid wlp3s0} %{F\#ffcf0f38}${exec cat /tmp/spkicon} %{F\#fffefdfb}${exec cat /tmp/volinfo}%% %{F\#ffcf0f38}⮏ %{F\#fffefdfb}${execi 30 cat /sys/class/power_supply/BAT0/capacity}%% (${execi 30 acpi | grep '[0-9]\{2\}:[0-9]\{2\}' -o}) %{F\#ffcf0f38} %{F\#fffefdfb}${time %H:%M}
+S %{F\#ffcf0f38}⮠ %{F\#fffefdfb}${wireless_essid wlp3s0} %{F\#ffcf0f38}${exec ~/.local/bin/spk-icon} %{F\#fffefdfb}${exec pamixer --get-volume}%% %{F\#ffcf0f38}⮏ %{F\#fffefdfb}${execi 30 cat /sys/class/power_supply/BAT0/capacity}%% (${execi 30 acpi | grep '[0-9]\{2\}:[0-9]\{2\}' -o}) %{F\#ffcf0f38} %{F\#fffefdfb}${time %H:%M}
mpc next
XF86AudioRaiseVolume
- pamixer --allow-boost --increase 5;\
- pamixer --get-volume > /tmp/volinfo
+ pamixer --allow-boost --increase 5
XF86AudioLowerVolume
- pamixer --allow-boost --decrease 5;\
- pamixer --get-volume > /tmp/volinfo
+ pamixer --allow-boost --decrease 5
XF86AudioMute
- pamixer --toggle-mute;\
- if $(pamixer --get-mute) ; then;\
- echo ⮝ > /tmp/spkicon;\
- else;\
- echo ⮟ > /tmp/spkicon;\
- fi
+ pamixer --toggle-mute