summaryrefslogtreecommitdiffstats
path: root/.scripts
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-12-09 14:31:19 -0500
committerLuke Smith <luke@lukesmith.xyz>2018-12-09 14:31:19 -0500
commit63f93ae98594681a1e128a8ceb5b02f3f39ea2de (patch)
treebc37230ef6a70457fb0e2dbdbd03846e0e633bbf /.scripts
parent5646b5b2e5153c0b4691299c24eb5d84eba4eea6 (diff)
downloadeibhear-63f93ae98594681a1e128a8ceb5b02f3f39ea2de.tar.gz
eibhear-63f93ae98594681a1e128a8ceb5b02f3f39ea2de.tar.zst
eibhear-63f93ae98594681a1e128a8ceb5b02f3f39ea2de.zip
lmc redundancy removed
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/tools/lmc13
1 files changed, 6 insertions, 7 deletions
diff --git a/.scripts/tools/lmc b/.scripts/tools/lmc
index 45cfcd9..18cf2c2 100755
--- a/.scripts/tools/lmc
+++ b/.scripts/tools/lmc
@@ -1,16 +1,13 @@
#!/bin/sh
-
# A general audio interface for LARBS.
-newvol="pkill -RTMIN+10 i3blocks"
-
[ -z "$2" ] && num="2" || num="$2"
case "$1" in
- u*) pulsemixer --change-volume +"$num" ; $newvol ;;
- d*) pulsemixer --change-volume -"$num" ; $newvol ;;
- m*) pulsemixer --toggle-mute ; $newvol ;;
- truemute) pulsemixer --mute ; $newvol ;;
+ u*) pulsemixer --change-volume +"$num" ;;
+ d*) pulsemixer --change-volume -"$num" ;;
+ m*) pulsemixer --toggle-mute ;;
+ truemute) pulsemixer --mute ;;
play) mpc play ;;
n*) mpc next ;;
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\`.
EOF
esac
+
+pkill -RTMIN+10 i3blocks