1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

scripts: cleaned up scripts and refined volume script

This commit is contained in:
2023-10-13 23:24:38 +02:00
parent b14a6f31cb
commit a51b50849f
5 changed files with 15 additions and 31 deletions

23
.local/bin/tools/audio/lmc Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
# A general audio interface for LARBS.
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
[ -z "$2" ] && num="2" || num="$2"
case "$1" in
u*) pulsemixer --change-volume +"$num" ;;
d*) pulsemixer --change-volume -"$num" ;;
m*) pulsemixer --toggle-mute ;;
*) cat << EOF
lmc: cli music interface for pulse for those with divine intellect too
grand to remember the pamixer commands.
Allowed options:
up NUM Increase volume (2 secs default)
down NUM Decrease volume (2 secs default)
mute Toggle mute
all else Print this message
EOF
esac