From 63f93ae98594681a1e128a8ceb5b02f3f39ea2de Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 9 Dec 2018 14:31:19 -0500 Subject: [PATCH] lmc redundancy removed --- .scripts/tools/lmc | 13 ++++++------- 1 file 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