aboutsummaryrefslogtreecommitdiff
path: root/modules/services/window-managers
diff options
context:
space:
mode:
authorwedens <kirill.wedens@gmail.com>2019-01-02 18:27:06 +0700
committerNikita Uvarov <uv.nikita@gmail.com>2019-10-28 11:31:51 +0100
commit5161dd3b2e9130d116809845187b088be2dc25b7 (patch)
treea26e58157b5000941fd0ec6fd212134dfeecd29c /modules/services/window-managers
parenta93d01fb4d66addd20afb3c8eba982ee80fdc9a8 (diff)
i3: add workspaceAutoBackAndForth option
Diffstat (limited to 'modules/services/window-managers')
-rw-r--r--modules/services/window-managers/i3.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/services/window-managers/i3.nix b/modules/services/window-managers/i3.nix
index 6c52ff6c335..412f5cc0298 100644
--- a/modules/services/window-managers/i3.nix
+++ b/modules/services/window-managers/i3.nix
@@ -416,6 +416,18 @@ let
'';
};
+ workspaceAutoBackAndForth = mkOption {
+ type = types.bool;
+ default = false;
+ example = true;
+ description = ''
+ Assume you are on workspace "1: www" and switch to "2: IM" using
+ mod+2 because somebody sent you a message. You don’t need to remember
+ where you came from now, you can just press $mod+2 again to switch
+ back to "1: www".
+ '';
+ };
+
keybindings = mkOption {
type = types.attrsOf (types.nullOr types.str);
default = mapAttrs (n: mkOptionDefault) {
@@ -752,6 +764,7 @@ let
focus_on_window_activation ${focus.newWindow}
mouse_warping ${if focus.mouseWarping then "output" else "none"}
workspace_layout ${workspaceLayout}
+ workspace_auto_back_and_forth ${if workspaceAutoBackAndForth then "yes" else "no"}
client.focused ${colorSetStr colors.focused}
client.focused_inactive ${colorSetStr colors.focusedInactive}