This commit is contained in:
Zacharias-Brohn
2026-01-19 18:40:28 +01:00
parent 8bd6547af9
commit 567faff34e
85 changed files with 2182 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/zsh
last_value=""
while true; do
volume=$( wpctl get-volume @DEFAULT_AUDIO_SOURCE@ )
percent=$( echo "$volume" | awk '{printf "%d%%", $2 * 100}' )
if [ "$percent" != "$last_value" ]; then
echo "$percent" | tr -d '\n' | jq -Rs -c '{text: ., alt: "volume"}'
last_value=$percent
fi
done