lmc redundancy removed
This commit is contained in:
parent
5646b5b2e5
commit
63f93ae985
1 changed files with 6 additions and 7 deletions
|
@ -1,16 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# A general audio interface for LARBS.
|
# A general audio interface for LARBS.
|
||||||
|
|
||||||
newvol="pkill -RTMIN+10 i3blocks"
|
|
||||||
|
|
||||||
[ -z "$2" ] && num="2" || num="$2"
|
[ -z "$2" ] && num="2" || num="$2"
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
u*) pulsemixer --change-volume +"$num" ; $newvol ;;
|
u*) pulsemixer --change-volume +"$num" ;;
|
||||||
d*) pulsemixer --change-volume -"$num" ; $newvol ;;
|
d*) pulsemixer --change-volume -"$num" ;;
|
||||||
m*) pulsemixer --toggle-mute ; $newvol ;;
|
m*) pulsemixer --toggle-mute ;;
|
||||||
truemute) pulsemixer --mute ; $newvol ;;
|
truemute) pulsemixer --mute ;;
|
||||||
play) mpc play ;;
|
play) mpc play ;;
|
||||||
n*) mpc next ;;
|
n*) mpc next ;;
|
||||||
prev) mpc prev ;;
|
prev) mpc prev ;;
|
||||||
|
@ -41,3 +38,5 @@ All of these commands, except for \`truemute\`, \`prev\` and \`play\` can be tru
|
||||||
i.e. \`lmc r\` for \`lmc restart\`.
|
i.e. \`lmc r\` for \`lmc restart\`.
|
||||||
EOF
|
EOF
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
pkill -RTMIN+10 i3blocks
|
||||||
|
|
Loading…
Reference in a new issue