1
0
This commit is contained in:
dtb
2023-11-19 20:18:20 -07:00
parent 67b50e9133
commit 407ea45346
15 changed files with 5 additions and 0 deletions

20
niceties/volume.pulseaudio Executable file
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