aboutsummaryrefslogtreecommitdiff
path: root/.config/eww/scripts
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2024-06-09 15:23:54 +0100
committerJustine Smithies <justine@smithies.me.uk>2024-06-09 15:23:54 +0100
commitaceb9a9b08fe89f212deeee278da37326023f989 (patch)
tree17a401021bf2ef5b2ba636abf1f1e2bc3742c7ee /.config/eww/scripts
parent0df0dbd6358b08c1f50d0cedd8c823f08cf662dd (diff)
Changed grep line as option -Po no longer valid with BSD
Diffstat (limited to '.config/eww/scripts')
-rwxr-xr-x.config/eww/scripts/volumecontrol3
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 {