From 6621b1998e6f02772adb2df2fc19343691b086cf Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sat, 25 Jul 2026 11:00:04 +0530 Subject: feat(display): using proper window classes for i3 --- modules/desktop/i3/default.nix | 8 ++------ modules/desktop/i3/keybindings.nix | 4 ++-- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'modules/desktop') diff --git a/modules/desktop/i3/default.nix b/modules/desktop/i3/default.nix index 5a428d3..b3d0672 100644 --- a/modules/desktop/i3/default.nix +++ b/modules/desktop/i3/default.nix @@ -53,7 +53,7 @@ window.commands = [ { - command = "floating enable, resize set 1400 800, move position center"; + command = "floating enable, resize set 1280 720, move position center"; criteria.class = "file-explorer"; } { @@ -61,13 +61,9 @@ criteria.class = "application-launcher"; } { - command = "floating enable, resize set 1000 600, move position center"; + command = "floating enable, resize set 1280 720, move position center"; criteria.class = "keybindings-viewer"; } - { - command = "if_floating_resize_set 1280 720"; - criteria.class = ".*"; - } ]; focus.followMouse = true; diff --git a/modules/desktop/i3/keybindings.nix b/modules/desktop/i3/keybindings.nix index b421dba..8857e7d 100644 --- a/modules/desktop/i3/keybindings.nix +++ b/modules/desktop/i3/keybindings.nix @@ -15,7 +15,7 @@ in lib.mkIf config.terminal.kitty.enable "exec ${lib.getExe config.terminal.kitty.package}"; "${mod}+f" = lib.mkIf (config.terminal.kitty.enable && config.file-management.yazi.enable) - "exec ${lib.getExe config.terminal.kitty.package} --title 'Yazi' -e ${lib.getExe config.file-management.yazi.package}"; + "exec ${lib.getExe config.terminal.kitty.package} --class file-explorer --title 'Yazi' -e ${lib.getExe config.file-management.yazi.package}"; "${mod}+s" = lib.mkIf config.terminal.kitty.enable "exec ${lib.getExe config.terminal.kitty.package} --title 'Keybindings' --class keybindings-viewer -e ${lib.getExe config.scripts.i3-keybindings.package}"; "${mod}+q" = "kill"; @@ -54,7 +54,7 @@ in "${mod}+Control+l" = "resize grow width 20 px or 20 ppt"; # Layout Modes - "${mod}+d" = "floating toggle"; + "${mod}+d" = "floating toggle, resize set 1280 720, move position center"; "${mod}+m" = "fullscreen toggle"; # --- Workspaces --- -- cgit v1.2.3