feat: massive cleanup, kctx cache
This commit is contained in:
parent
23d1e06c20
commit
a759ac8dd2
28 changed files with 320 additions and 1743 deletions
|
@ -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")"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue