diff --git a/modules/graphical/default.nix b/modules/graphical/default.nix index 4fe70a1..fa59cc5 100644 --- a/modules/graphical/default.nix +++ b/modules/graphical/default.nix @@ -29,6 +29,10 @@ type = types.str; description = "Command to use for interacting with systemd"; }; + altTabCommand = mkOption { + type = types.str; + description = "Command to use for choosing windows"; + }; toggleBarCommand = lib.mkOption { type = lib.types.str; description = "Command to hide and show the status bar."; diff --git a/modules/graphical/i3.nix b/modules/graphical/i3.nix index f339137..7876b52 100644 --- a/modules/graphical/i3.nix +++ b/modules/graphical/i3.nix @@ -116,6 +116,7 @@ in { "exec --no-startup-id ${config.gui.launcherCommand}"; "${modifier}+Shift+s" = "exec --no-startup-id ${config.gui.systemdSearch}"; + "Mod1+Tab" = "exec --no-startup-id ${config.gui.altTabCommand}"; "${modifier}+Shift+c" = "reload"; "${modifier}+Shift+r" = "restart"; "${modifier}+Shift+q" = '' diff --git a/modules/graphical/rofi.nix b/modules/graphical/rofi.nix index 73cd6a9..d82e015 100644 --- a/modules/graphical/rofi.nix +++ b/modules/graphical/rofi.nix @@ -146,6 +146,7 @@ gui.launcherCommand = "${pkgs.rofi}/bin/rofi -show run -modi run"; gui.systemdSearch = "${pkgs.rofi-systemd}/bin/rofi-systemd"; + gui.altTabCommand = "${pkgs.rofi}/bin/rofi -show window -modi window"; };