diff options
Diffstat (limited to '.config/eww')
-rwxr-xr-x | .config/eww/scripts/volumecontrol | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/eww/scripts/volumecontrol b/.config/eww/scripts/volumecontrol index 60a5b83..2a91d85 100755 --- a/.config/eww/scripts/volumecontrol +++ b/.config/eww/scripts/volumecontrol @@ -7,7 +7,8 @@ function get_volume { # amixer get Master | grep '%' | head -n 1 | cut -d '[' -f 2 | cut -d '%' -f 1 - pactl get-sink-volume @DEFAULT_SINK@ | grep -Po '\d+(?=%)' | head -n 1 + # pactl get-sink-volume @DEFAULT_SINK@ | grep -Po '\d+(?=%)' | head -n 1 + pactl get-sink-volume @DEFAULT_SINK@ | grep '%' | cut -d '%' -f 1 | cut -d ' ' -f 6 } function is_mute { |