From 95b0139e3f9c0972709835c112bcf2bf0646d0c9 Mon Sep 17 00:00:00 2001 From: Trysdyn Black Date: Sat, 11 Jun 2022 16:10:27 -0700 Subject: [PATCH] Support more than one video on my TV via sway We drop mpv on the TV being fullscreen in favor of having no borders. This makes it look full screen while allowing multiple feeds if needs be. We also remove the swaybar from the TV so it doesn't chew up space. --- .config/sway/config | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index 94827a6..120021e 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -34,6 +34,7 @@ set $mod Mod4 # status bar declarations bar { + output "Ancor Communications Inc VE247 G6LMQS117385" status_command "~/bin/statusbar" position bottom @@ -79,7 +80,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 --image-display-duration=inf --force-window --title=`wl-paste` `wl-paste`" +bindsym $mod+m exec "mpv --wayland-app-id=mpv__tv --image-display-duration=inf --force-window --title=`wl-paste` `wl-paste`" # change focus bindsym $mod+Left focus left @@ -205,8 +206,8 @@ workspace_auto_back_and_forth yes # Make windows created with a special floating class float for_window [app_id=".*__user_requests_float"] floating enable, border pixel 1, resize set 800 600 -# Make mpv earmarked for the TV go to fullscreen workspace 9 and not steal focus -for_window [app_id="mpv__tv"] fullscreen enable +# Make mpv earmarked for the TV go to workspace 9, have no decorations and not steal focus +for_window [app_id="mpv__tv"] border none assign [app_id="mpv__tv"] workspace number 9 no_focus [app_id="mpv__tv"]