From 350d7bb3cdd8bab2318d95493cb151369503c9ba Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Thu, 2 Jun 2022 22:09:53 -0400 Subject: [PATCH] add rofi alt-tab command --- modules/graphical/default.nix | 4 ++++ modules/graphical/i3.nix | 1 + modules/graphical/rofi.nix | 1 + 3 files changed, 6 insertions(+) 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"; };