Improve mpv global keys

This commit is contained in:
Akemi Izuko 2022-10-03 20:54:15 -06:00
parent a08d67627e
commit 301f2d6b60
No known key found for this signature in database
GPG key ID: 905D444F6A5E4BE4
2 changed files with 6 additions and 2 deletions

View file

@ -33,6 +33,7 @@ declare -r \
'neovim' 'nvim' 'neovim' 'nvim'
'paru' 'paru' 'paru' 'paru'
'ripgrep' 'rg' 'ripgrep' 'rg'
'socat' 'socat'
'sway' 'sway' 'sway' 'sway'
'swaybg' 'swaybg' 'swaybg' 'swaybg'
'swaylock' 'swaylock' 'swaylock' 'swaylock'

View file

@ -362,16 +362,19 @@ mode "shrink_screenshots" {
bindsym $mod2+m mode "mpv_global" bindsym $mod2+m mode "mpv_global"
mode "mpv_global" { mode "mpv_global" {
bindsym bracketleft exec ~/.config/sway/mpv_keys.sh '['
bindsym bracketright exec ~/.config/sway/mpv_keys.sh ']'
bindsym j exec ~/.config/sway/mpv_keys.sh 'j' bindsym j exec ~/.config/sway/mpv_keys.sh 'j'
bindsym k exec ~/.config/sway/mpv_keys.sh 'k' bindsym k exec ~/.config/sway/mpv_keys.sh 'k'
bindsym l exec ~/.config/sway/mpv_keys.sh 'l' bindsym l exec ~/.config/sway/mpv_keys.sh 'l'
bindsym space exec ~/.config/sway/mpv_keys.sh 'SPACE'
bindsym bracketleft exec ~/.config/sway/mpv_keys.sh '['
bindsym bracketright exec ~/.config/sway/mpv_keys.sh ']'
bindsym minus exec ~/.config/sway/mpv_keys.sh '-' bindsym minus exec ~/.config/sway/mpv_keys.sh '-'
bindsym equal exec ~/.config/sway/mpv_keys.sh '=' bindsym equal exec ~/.config/sway/mpv_keys.sh '='
bindsym m exec ~/.config/sway/mpv_keys.sh 'm'
bindsym return mode "default" bindsym return mode "default"
bindsym Ctrl+k mode "default" bindsym Ctrl+k mode "default"
bindsym Shift+End mode "default" # In Browsers
bindsym Escape mode "default" bindsym Escape mode "default"
} }