lmc can pause mpv; mod+P is true pause

This commit is contained in:
Luke Smith 2018-07-29 20:52:57 -04:00
parent 4757ea4345
commit 7805bedbce
2 changed files with 6 additions and 4 deletions

View file

@ -146,7 +146,7 @@ bindsym $mod+o sticky toggle
bindsym $mod+Shift+o exec --no-startup-id "bash ~/.scripts/i3resize right" bindsym $mod+Shift+o exec --no-startup-id "bash ~/.scripts/i3resize right"
bindsym $mod+p exec --no-startup-id lmc toggle 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+a [instance="math"] scratchpad show; [instance="math"] move position center
bindsym $mod+Shift+a exec $term -e pulsemixer bindsym $mod+Shift+a exec $term -e pulsemixer

View file

@ -1,7 +1,10 @@
#!/bin/bash #!/bin/bash
# A general audio interface for LARBS.
newvol="pkill -RTMIN+10 i3blocks" newvol="pkill -RTMIN+10 i3blocks"
newmpd="pkill -RTMIN+11 i3blocks" # Uncomment if i3mpdupdate isn't running:
#newmpd="pkill -RTMIN+11 i3blocks"
case "$1" in case "$1" in
"up") pamixer --allow-boost -i "$2" ; $newvol ;; "up") pamixer --allow-boost -i "$2" ; $newvol ;;
@ -9,11 +12,10 @@ case "$1" in
"mute") pamixer --allow-boost -t ; $newvol ;; "mute") pamixer --allow-boost -t ; $newvol ;;
"truemute") pamixer --allow-boost -m ; $newvol ;; "truemute") pamixer --allow-boost -m ; $newvol ;;
"toggle") mpc toggle ; $newmpd ;; "toggle") mpc toggle ; $newmpd ;;
"pause") mpc pause ; $newmpd ;; "pause") mpc pause ; $newmpd ; pauseallmpv ;;
"forward") mpc seek +"$2" ; $newmpd ;; "forward") mpc seek +"$2" ; $newmpd ;;
"back") mpc seek -"$2" ; $newmpd ;; "back") mpc seek -"$2" ; $newmpd ;;
"next") mpc next ; $newmpd ;; "next") mpc next ; $newmpd ;;
"prev") mpc prev ; $newmpd ;; "prev") mpc prev ; $newmpd ;;
"replay") mpc seek 0% ; $newmpd ;; "replay") mpc seek 0% ; $newmpd ;;
esac esac
exit