From a256b1b7c508ae7c711c830956667dc2be2fbc2e Mon Sep 17 00:00:00 2001 From: James Patrick Date: Sun, 28 Apr 2019 18:33:51 -0400 Subject: [PATCH] Added floating mode for MPV windows. --- sway/config | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sway/config b/sway/config index 1eed09e..b08ed4b 100644 --- a/sway/config +++ b/sway/config @@ -83,11 +83,13 @@ gaps outer 2 ### Colors # class border backgr text indicator child_border client.focused #12e689 #12e689 #1f212e #12e689 #12e689 -#client.focused #02a4fc #02a4fc #1f212e #02a4fc #02a4fc client.focused_inactive #1f212e #1f212e #aab5c6 #1f212e #1f212e client.unfocused #161720 #161720 #aab5c6 #161720 #161720 client.urgent #ff4551 #ff4551 #1f212e #ff4551 #ff4551 + +for_window [class="mpv"] floating enabled + ### Make things a little easier easier on the eyes. exec redshift @@ -190,6 +192,9 @@ font pango:Fira Code 9 # Make the current focus fullscreen bindsym $mod+f fullscreen + # Adding Sticky mode. This will keep a floating window on all screens. + bindsym $mod+Shift+s sticky toggle + # Toggle the current focus between tiling and floating mode bindsym $mod+Shift+space floating toggle