diff --git a/.config/i3/config b/.config/i3/config index 53e060d..5724b1c 100644 --- 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 index 83a08db..37bd958 100755 --- 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