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.
This commit is contained in:
parent
25622204cc
commit
95b0139e3f
1 changed files with 4 additions and 3 deletions
|
@ -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"]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue