From dcde2d8f870b16fe74847e0e902f2f51f2e7e879 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Mon, 29 Apr 2024 15:17:31 -0400 Subject: [PATCH] sway: fixed window resize rules --- homeManagerModules/desktop/sway/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/homeManagerModules/desktop/sway/default.nix b/homeManagerModules/desktop/sway/default.nix index a5874d6f..3655b174 100644 --- a/homeManagerModules/desktop/sway/default.nix +++ b/homeManagerModules/desktop/sway/default.nix @@ -392,12 +392,24 @@ titlebar = false; commands = [ { - command = "floating enable; sticky toggle; resize 35% 10%"; + command = "floating enable; sticky toggle; resize 35ppt 10ppt"; criteria = { title = "^Picture-in-Picture$"; app_id = "firefox"; }; } + { + command = "resize set 40ppt 60ppt"; + criteria = { + app_id = "blueberry.py"; + }; + } + { + command = "resize set 40ppt 60ppt"; + criteria = { + app_id = "pavucontrol"; + }; + } ]; }; workspaceAutoBackAndForth = true;