add files

This commit is contained in:
2026-06-06 12:24:00 +02:00
commit 22296aa139
22 changed files with 3425 additions and 0 deletions
Executable
+29
View File
@@ -0,0 +1,29 @@
#!/usr/bin/env bash
if [ $# != 1 ]; then
echo "Usage: ${0} up|down"
exit 1
fi
STEP=5
get_vol() {
mpc --host=/home/user/.config/mpd/socket volume
}
set_vol() {
mpc --host=/home/user/.config/mpd/socket volume "$1"
}
case "$1" in
up)
set_vol +$((STEP))
;;
down)
set_vol -$((STEP))
;;
*)
echo "Usage: ${0} up|down"
exit 1
;;
esac