Slightly different color for statusbar item's icon.
This commit is contained in:
parent
826a05826d
commit
4ff14f25fd
6 changed files with 31 additions and 37 deletions
4
_suckless/_scripts/sb-vol-out
Executable file
4
_suckless/_scripts/sb-vol-out
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
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 "^c#ffffff^\ufa80 ^c#ffffff^^b#770000^mute^d^" || printf "^c#ffffff^\uf028 ^d^${vol}%%"
|
Loading…
Add table
Add a link
Reference in a new issue