From c60db2e0a7df566112e958111daf0111ca4a48a7 Mon Sep 17 00:00:00 2001 From: Dmitriy Holkin Date: Fri, 20 Sep 2019 02:08:15 +0400 Subject: [PATCH] Start workspaces with 1 --- modules/workspace/i3/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/workspace/i3/default.nix b/modules/workspace/i3/default.nix index 691d2be..4a45372 100644 --- a/modules/workspace/i3/default.nix +++ b/modules/workspace/i3/default.nix @@ -164,12 +164,12 @@ in { "--release button2" = "kill"; "--whole-window ${modifier}+button2" = "kill"; } // builtins.listToAttrs (builtins.genList (x: { - name = "${modifier}+${toString x}"; - value = "workspace ${toString x}"; - }) 10) // builtins.listToAttrs (builtins.genList (x: { - name = "${modifier}+Shift+${toString x}"; - value = "move container to workspace ${toString x}"; - }) 10)); + name = "${modifier}+${toString (x + 1)}"; + value = "workspace ${toString (x + 1)}"; + }) 9) // builtins.listToAttrs (builtins.genList (x: { + name = "${modifier}+Shift+${toString (x + 1)}"; + value = "move container to workspace ${toString (x + 1)}"; + }) 9)); keycodebindings = { "122" = "exec ${pkgs.pamixer}/bin/pamixer -d 5"; "123" = "exec ${pkgs.pamixer}/bin/pamixer -i 5";