From d4ab8ed84e0c45e6dcfe6389fdb0153bbc167d74 Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Mon, 19 Sep 2022 19:39:37 +0100 Subject: [PATCH] Use new hyper key --- users/daniel/configs/desktop/i3/default.nix | 28 +++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/users/daniel/configs/desktop/i3/default.nix b/users/daniel/configs/desktop/i3/default.nix index a0cb340..f40cbcc 100644 --- a/users/daniel/configs/desktop/i3/default.nix +++ b/users/daniel/configs/desktop/i3/default.nix @@ -5,6 +5,7 @@ ... }: let mod = "Mod4"; + hyper = "Control+Shift+Mod1"; in { home.file = { "bin/scripts/goup" = { @@ -132,35 +133,62 @@ in { }; keybindings = lib.mkOptionDefault { + "${hyper}+Return" = "exec kitty"; "${mod}+q" = "kill"; "${mod}+d" = "exec rofi -show drun"; + "${hyper}+q" = "kill"; + "${hyper}+d" = "exec rofi -show drun"; "${mod}+h" = "focus left"; "${mod}+j" = "focus down"; "${mod}+k" = "focus up"; "${mod}+l" = "focus right"; + "${hyper}+h" = "focus left"; + "${hyper}+j" = "focus down"; + "${hyper}+k" = "focus up"; + "${hyper}+l" = "focus right"; "${mod}+Shift+h" = "move left"; "${mod}+Shift+l" = "move right"; + "${hyper}+y" = "move left"; + "${hyper}+o" = "move right"; + "${mod}+Tab" = "workspace back_and_forth"; + "${hyper}+Tab" = "workspace back_and_forth"; "${mod}+b" = "split h"; "${mod}+v" = "split v"; + + "${hyper}+b" = "split h"; + "${hyper}+v" = "split v"; + "${mod}+Control+Return" = "exec --no-startup-id i3utils workspace new"; "${mod}+Control+Shift+Return" = "exec --no-startup-id i3utils workspace new -b"; "${mod}+Shift+Return" = "exec --no-startup-id i3utils workspace new -n, move next"; "${mod}+Control+j" = "exec --no-startup-id $HOME/bin/scripts/godown"; "${mod}+Control+k" = "exec --no-startup-id $HOME/bin/scripts/goup"; + "${mod}+Control+u" = "exec --no-startup-id $HOME/bin/scripts/godown"; + "${mod}+Control+i" = "exec --no-startup-id $HOME/bin/scripts/goup"; "${mod}+Control+h" = "exec --no-startup-id i3utils workspace new -b"; + "${hyper}+u" = "exec --no-startup-id $HOME/bin/scripts/godown"; + "${hyper}+i" = "exec --no-startup-id $HOME/bin/scripts/goup"; + "${mod}+Shift+k" = "exec --no-startup-id i3utils window move prev"; "${mod}+Shift+j" = "exec --no-startup-id i3utils window move next"; + "${hyper}+comma" = "exec --no-startup-id i3utils window move prev"; + "${hyper}+m" = "exec --no-startup-id i3utils window move next"; + "${mod}+p" = "scratchpad show, resize set 80 ppt 80ppt, move position center"; + "${hyper}+p" = "scratchpad show, resize set 80 ppt 80ppt, move position center"; "${mod}+Escape" = "exec loginctl lock-session"; + "${hyper}+Escape" = "exec loginctl lock-session"; + + "${hyper}+f" = "fullscreen toggle"; "XF86MonBrightnessUp" = "exec xbacklight -inc 10"; "XF86MonBrightnessDown" = "exec xbacklight -dec 10";