From 041feebb59857ab7acf03429f41bf6fa619f6b04 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 28 Apr 2024 17:54:36 -0400 Subject: [PATCH] sway: center floating windows --- homeManagerModules/desktop/sway/default.nix | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/homeManagerModules/desktop/sway/default.nix b/homeManagerModules/desktop/sway/default.nix index d3772199..18bc16cc 100644 --- a/homeManagerModules/desktop/sway/default.nix +++ b/homeManagerModules/desktop/sway/default.nix @@ -367,43 +367,43 @@ titlebar = false; commands = [ { - command = "floating enable"; + command = "floating enable; move position center"; criteria = { app_id = "blueberry.py"; }; } { - command = "floating enable"; + command = "floating enable; move position center"; criteria = { app_id = "pavucontrol"; }; } { - command = "floating enable"; + command = "floating enable; move position center"; criteria = { app_id = "com.github.wwmm.easyeffects"; }; } { - command = "floating enable"; + command = "floating enable; move position center"; criteria = { window_role = "pop-up"; }; } { - command = "floating enable"; + command = "floating enable; move position center"; criteria = { window_role = "dialog"; }; } { - command = "floating enable"; + command = "floating enable; move position center"; criteria = { window_role = "bubble"; }; } { - command = "floating enable"; + command = "floating enable; move position center"; criteria = { window_type = "dialog"; }; @@ -415,12 +415,6 @@ app_id = "firefox"; }; } - { - command = "xwayland disable"; - criteria = { - class = "vlc"; - }; - } ]; }; };