dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 63f93ae98594681a1e128a8ceb5b02f3f39ea2de
parent 5646b5b2e5153c0b4691299c24eb5d84eba4eea6
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sun,  9 Dec 2018 14:31:19 -0500

lmc redundancy removed

Diffstat:
M.scripts/tools/lmc | 13++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)

diff --git 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