qtile gives me more than dwm. I will try to live with it's quirks.

This commit is contained in:
Bartek Stalewski 2022-08-23 00:15:20 +02:00
parent 35ccb08948
commit 75517d5ad3
35 changed files with 9 additions and 9 deletions

7
_desktop/_scripts/sb-volume Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
icon='\uf028 '
mic=$(pactl get-source-volume @DEFAULT_SOURCE@ | awk -F' / ' '{print $2}' | tr -d '%')
[ $(pactl get-source-mute @DEFAULT_SOURCE@ | awk -F': ' '{print $2}') = yes ] || [ "$mic" -eq 0 ] && micmute="<span foreground='#ffffff' background='#770000'> \uf131 </span> " || micmute=""
vol=$(pactl get-sink-volume @DEFAULT_SINK@ | awk -F' / ' '{print $2}' | tr -d '%')
[ $(pactl get-sink-mute @DEFAULT_SINK@ | awk -F': ' '{print $2}') = yes ] || [ "$vol" -eq 0 ] && printf "${micmute}$icon <span foreground='#ffffff' background='#770000'>mute</span>" || printf "$micmute$icon ${vol}%%"