MPV: add youtube-like time skips

This commit is contained in:
Akemi Izuko 2024-02-04 23:35:46 -07:00
parent 620be2c4dd
commit b1dc75d095
Signed by: akemi
GPG key ID: 8DE0764E1809E9FC
2 changed files with 21 additions and 0 deletions

View file

@ -119,6 +119,16 @@ k cycle pause # toggle pause/playback mode
) add audio-delay +0.1 # change audio/video sync by shifting the audio earlier ) add audio-delay +0.1 # change audio/video sync by shifting the audio earlier
+ add sub-scale +0.01 + add sub-scale +0.01
_ add sub-scale -0.01 _ add sub-scale -0.01
0 seek 0 absolute exact
1 seek 10 absolute-percent
2 seek 20 absolute-percent
3 seek 30 absolute-percent
4 seek 40 absolute-percent
5 seek 50 absolute-percent
6 seek 60 absolute-percent
7 seek 70 absolute-percent
8 seek 80 absolute-percent
9 seek 90 absolute-percent
# ctrl++ add audio-delay 0.100 # change audio/video sync by delaying the audio # ctrl++ add audio-delay 0.100 # change audio/video sync by delaying the audio
# ctrl+- add audio-delay -0.100 # change audio/video sync by shifting the audio earlier # ctrl+- add audio-delay -0.100 # change audio/video sync by shifting the audio earlier
# Shift+g add sub-scale +0.1 # increase the subtitle font size # Shift+g add sub-scale +0.1 # increase the subtitle font size

View file

@ -102,6 +102,7 @@ bindsym $mod1+ctrl+r exec wtype "asExpectedOfRust"
# Automatic upload image to discord # Automatic upload image to discord
bindsym $mod1+ctrl+u exec sudo -u emiliko ~/.configs_pointer/bin/auto_image_upload_discord.sh bindsym $mod1+ctrl+u exec sudo -u emiliko ~/.configs_pointer/bin/auto_image_upload_discord.sh
# Paste by typing # Paste by typing
bindsym Mod4+Ctrl+v exec ~/.configs_pointer/bin/wpastetype.py bindsym Mod4+Ctrl+v exec ~/.configs_pointer/bin/wpastetype.py
@ -375,6 +376,16 @@ mode "mpv_global" {
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 m exec ~/.config/sway/mpv_keys.sh 'm'
bindsym A exec ~/.config/sway/mpv_keys.sh 'A' bindsym A exec ~/.config/sway/mpv_keys.sh 'A'
bindsym 0 exec ~/.config/sway/mpv_keys.sh '0'
bindsym 1 exec ~/.config/sway/mpv_keys.sh '1'
bindsym 2 exec ~/.config/sway/mpv_keys.sh '2'
bindsym 3 exec ~/.config/sway/mpv_keys.sh '3'
bindsym 4 exec ~/.config/sway/mpv_keys.sh '4'
bindsym 5 exec ~/.config/sway/mpv_keys.sh '5'
bindsym 6 exec ~/.config/sway/mpv_keys.sh '6'
bindsym 7 exec ~/.config/sway/mpv_keys.sh '7'
bindsym 8 exec ~/.config/sway/mpv_keys.sh '8'
bindsym 9 exec ~/.config/sway/mpv_keys.sh '9'
bindsym return mode "default" bindsym return mode "default"
bindsym Ctrl+k mode "default" bindsym Ctrl+k mode "default"