diff options
author | Justine Smithies <justine@smithies.me.uk> | 2024-06-09 15:23:54 +0100 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2024-06-09 15:23:54 +0100 |
commit | aceb9a9b08fe89f212deeee278da37326023f989 (patch) | |
tree | 17a401021bf2ef5b2ba636abf1f1e2bc3742c7ee /.config | |
parent | 0df0dbd6358b08c1f50d0cedd8c823f08cf662dd (diff) |
Changed grep line as option -Po no longer valid with BSD
Diffstat (limited to '.config')
-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 { |