From 4d6171844a8b6971c76be8054aa56b65685317fd Mon Sep 17 00:00:00 2001 From: bd Date: Sat, 18 Oct 2025 16:49:18 -0400 Subject: move tab-bar-global info to dedicated eww panel --- .config/eww/scripts/getvol | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .config/eww/scripts/getvol (limited to '.config/eww/scripts/getvol') diff --git a/.config/eww/scripts/getvol b/.config/eww/scripts/getvol new file mode 100755 index 0000000..9fbe60f --- /dev/null +++ b/.config/eww/scripts/getvol @@ -0,0 +1,9 @@ +#!/bin/sh + +RUNNING_SINK=$(pactl list sinks | awk ' + /^Sink #/ {sink=$2} + /State: RUNNING/ {print sink} +' | head -n1) + +pactl list sinks | grep -A 20 "^Sink $RUNNING_SINK" | grep '^[[:space:]]Volume:' | \ + head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' -- cgit v1.2.3