From 990823382f5233765c1da4b9669ea9a90e553869 Mon Sep 17 00:00:00 2001 From: Trysdyn Black Date: Thu, 26 May 2022 00:46:09 -0700 Subject: [PATCH] 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. --- .config/sway/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/sway/config b/.config/sway/config index 86fc859..e4999ef 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -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