dotfiles

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

commit 49247875e0cdd9de5019090ab525c0d700ba178a
parent 97cd22f7fc780e7753e72684380ae79d6069ef3b
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sun, 29 Mar 2020 12:02:15 -0400

lmc can run mixer

Diffstat:
M.local/bin/lmc | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.local/bin/lmc b/.local/bin/lmc @@ -10,11 +10,13 @@ if [ "$PULSE" ]; then mute() { pulsemixer --mute ;} up() { pulsemixer --change-volume +"$NUM" ;} down() { pulsemixer --change-volume -"$NUM" ;} + control() { pulsemixer ;} else toggle() { amixer sset Master toggle ;} mute() { amixer sset Master mute ;} up() { amixer sset Master "$NUM"%+ ;} down() { amixer sset Master "$NUM"%- ;} + control() { alsamixer ;} fi case "$1" in @@ -22,6 +24,7 @@ case "$1" in mute) mute ;; up) up ;; down) down ;; -esac >/dev/null + control) control ;; +esac pkill -RTMIN+10 "${STATUSBAR:?}" &