Make mpv called from sway handle images

This just adds `--image-display-duration=inf` so if I grab a URL and
open it in mpv with Sway's hotkey, it doesn't blink on for a few frames
then exit.
This commit is contained in:
Trysdyn Black 2022-05-26 00:46:09 -07:00
parent 2fc8d0a041
commit 990823382f

View file

@ -79,7 +79,7 @@ bindsym $mod+space exec "rofi -show run"
bindsym $mod+Shift+Return exec "pcmanfm"
# open clipboard selection in mpv, for grabbng links from chat/email
bindsym $mod+m exec "mpv --force-window --title=`wl-paste -p` `wl-paste -p`"
bindsym $mod+m exec "mpv --image-display-duration=inf --force-window --title=`wl-paste -p` `wl-paste -p`"
# change focus
bindsym $mod+Left focus left