add my own script and config

This commit is contained in:
lucy 2026-06-29 23:32:15 +02:00
commit e365e295f3
4 changed files with 32 additions and 13 deletions

11
wp.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
vol=$(echo "$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk -F' ' '{print $2}') * 100" | bc)
status=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | grep -q "[MUTED]")
if wpctl get-volume @DEFAULT_AUDIO_SINK@| grep -q "[MUTED]"; then
echo "mut": $vol%
exit
fi
echo vol: $vol%