From 5f196b8bfce0788132ffbe3399e7169ad83a7233 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Tue, 14 May 2019 22:37:21 -0400 Subject: [PATCH] Added PIP mode. Still need to figure out window positioning. Prior to this I was have used xdotool but there is not currently an equivalent that does window sizing. Still trying to figure out a good solution to this. --- sway/config | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sway/config b/sway/config index 7370ffe..cbed6d3 100644 --- a/sway/config +++ b/sway/config @@ -81,7 +81,10 @@ client.unfocused #161720 #161720 #aab5c6 #161720 #161720 client.urgent #ff4551 #ff4551 #1f212e #ff4551 #ff4551 -for_window [class="mpv"] floating enabled +set $PIP floating enabled ; sticky enabled ; border pixel 0 +for_window [class="mpv"] $PIP +for_window [class="pip"] $PIP +#for_window [class="pip"] sticky enabled ### Font stuff