From aceb9a9b08fe89f212deeee278da37326023f989 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Sun, 9 Jun 2024 15:23:54 +0100 Subject: Changed grep line as option -Po no longer valid with BSD --- .config/eww/scripts/volumecontrol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.config') 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 { -- cgit v1.2.3