dotfiles

Luke's GNU/Linux dotfiles for i3, vim, ranger, bash, mpd, etc.
git clone git@git.lukesmith.xyz:dotfiles
Log | Files | Refs | README | LICENSE

commit 064995a95d31c5454e22f0ee97260fcd69ac631d
parent 12b24e07db180c9ba46fe6e15e3c381176cc0d66
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