From 2e2200b4b96436fbfee59c74bfeb9f7e417a84df Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Mon, 20 May 2019 12:26:19 -0400 Subject: [PATCH] lmc unneeded --- .config/sxhkd/sxhkdrc | 22 +++++++++++----------- .local/bin/lmc | 42 ------------------------------------------ 2 files changed, 11 insertions(+), 53 deletions(-) delete mode 100755 .local/bin/lmc diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index e9f28db..97a2a65 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -68,25 +68,25 @@ super + Delete # Pause audio super + {_,shift +} p - lmc {toggle,pause} + mpc {toggle,pause} # Changes to next/previous tracks super + {comma,period} - lmc {prev,next} + mpc {prev,next} # Restart track super + shift + less - lmc replay -# Increase volume -super + {equal,plus} - lmc up {5,15} -# Decrease volume -super {_,shift +} + minus - lmc down {5,15} + mpc seek 0% # Seek foward in song super + {_,shift +} bracketright - lmc forward {10,120} + mpc seek +{10,120} # Seek backward in song super + {_,shift +} bracketleft - lmc back {10,120} + mpc seek -{10,120} +# Increase volume +super + {equal,plus} + amixer sset Master {5,15}%+ +# Decrease volume +super {_,shift +} + minus + amixer sset Master {5,15}%- # Function keys # Show readme diff --git a/.local/bin/lmc b/.local/bin/lmc deleted file mode 100755 index 18cf2c2..0000000 --- a/.local/bin/lmc +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh -# A general audio interface for LARBS. - -[ -z "$2" ] && num="2" || num="$2" - -case "$1" in - 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 ;; - t*) mpc toggle ;; - p*) mpc pause ; pauseallmpv ;; - f*) mpc seek +"$num" ;; - b*) mpc seek -"$num" ;; - r*) mpc seek 0% ;; - *) cat << EOF -lmc: cli music interface for mpd and pulse for those with divine intellect too -grand to remember the mpc/pamixer commands. - -Allowed options: - up NUM Increase volume (2 secs default) - down NUM Decrease volume (2 secs default) - mute Toggle mute - truemute Mute - next Next track - prev Previous track - toggle Toggle pause - truepause Pause - foward NUM Seek foward in song (2 secs default) - back NUM Seek back in song (2 secs default) - restart Restart current song - all else Print this message - -All of these commands, except for \`truemute\`, \`prev\` and \`play\` can be truncated, -i.e. \`lmc r\` for \`lmc restart\`. -EOF -esac - -pkill -RTMIN+10 i3blocks