diff options
Diffstat (limited to 'Scripts/i3blocks_volume')
| -rwxr-xr-x | Scripts/i3blocks_volume | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Scripts/i3blocks_volume b/Scripts/i3blocks_volume new file mode 100755 index 0000000..84da634 --- /dev/null +++ b/Scripts/i3blocks_volume @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ "$(pactl get-sink-mute @DEFAULT_SINK@)" = "Mute: yes" ]; then + echo "vol: mute" +else + echo "vol: $(pactl get-sink-volume @DEFAULT_SINK@ | awk '{printf "%s", substr($5, 1, length($5) - 1)}')" +fi |
