independ battery and volume

This commit is contained in:
2022-09-17 17:55:31 -04:00
parent 1e4b4d0096
commit 325fa5ef64
9 changed files with 21 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/bin/sh -e
# pactl 15.0 compiled+linked with libpulse 15.0.0
case "$argv1" in
a*)
pactl set-sink-volume @DEFAULT_SINK@ $2%
exit $?
;;
s*) # really hacky, gets the job done
# gets the volume % of Lchan specifically
pactl get-sink-volume @DEFAULT_SINK@ \
| sed q \
| cut -d '/' -f 2 \
| xargs echo \
| sed s/'%'//
;;
esac
exit 1