dotfiles

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

commit 7805bedbce0cb018404d581a8b91961a26d67815
parent 4757ea4345ae040d5fae7fb1bb668c1c9f85fa98
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sun, 29 Jul 2018 20:52:57 -0400

lmc can pause mpv; mod+P is true pause

Diffstat:
M.config/i3/config | 2+-
M.scripts/lmc | 8+++++---
2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/.config/i3/config b/.config/i3/config @@ -146,7 +146,7 @@ bindsym $mod+o sticky toggle bindsym $mod+Shift+o exec --no-startup-id "bash ~/.scripts/i3resize right" bindsym $mod+p exec --no-startup-id lmc toggle -#bindsym $mod+Shift+p +bindsym $mod+Shift+p exec --no-startup-id lmc pause bindsym $mod+a [instance="math"] scratchpad show; [instance="math"] move position center bindsym $mod+Shift+a exec $term -e pulsemixer diff --git a/.scripts/lmc b/.scripts/lmc @@ -1,7 +1,10 @@ #!/bin/bash +# A general audio interface for LARBS. + newvol="pkill -RTMIN+10 i3blocks" -newmpd="pkill -RTMIN+11 i3blocks" +# Uncomment if i3mpdupdate isn't running: +#newmpd="pkill -RTMIN+11 i3blocks" case "$1" in "up") pamixer --allow-boost -i "$2" ; $newvol ;; @@ -9,11 +12,10 @@ case "$1" in "mute") pamixer --allow-boost -t ; $newvol ;; "truemute") pamixer --allow-boost -m ; $newvol ;; "toggle") mpc toggle ; $newmpd ;; - "pause") mpc pause ; $newmpd ;; + "pause") mpc pause ; $newmpd ; pauseallmpv ;; "forward") mpc seek +"$2" ; $newmpd ;; "back") mpc seek -"$2" ; $newmpd ;; "next") mpc next ; $newmpd ;; "prev") mpc prev ; $newmpd ;; "replay") mpc seek 0% ; $newmpd ;; esac -exit