feat: massive cleanup, kctx cache

This commit is contained in:
ange 2025-04-05 06:31:22 +00:00
parent 23d1e06c20
commit a759ac8dd2
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
28 changed files with 320 additions and 1743 deletions

View file

@ -3,11 +3,11 @@
case "$1" in
s)
DEV='@DEFAULT_AUDIO_SINK@'
SIG=35
SIG=34
;;
m)
DEV='@DEFAULT_AUDIO_SOURCE@'
SIG=36
SIG=35
;;
*)
exit 1
@ -33,7 +33,7 @@ function update_vol() {
}
read -r _ CUR MUTE < <(wpctl get-volume "$DEV")
CUR=$(("10#${CUR/./}"))
CUR=$((10#${CUR/./}))
if [ -z "$1" ]; then
echo "$CUR"
@ -49,4 +49,4 @@ else
fi
fi
kill "-$SIG" "$(cat "$XDG_CACHE_HOME/pidofbar")"
kill "-$SIG" "$(cat "$XDG_CACHE_HOME/sbar/pid")"