Use new hyper key

This commit is contained in:
2022-09-19 19:39:37 +01:00
parent 3b344accc8
commit d4ab8ed84e

View File

@@ -5,6 +5,7 @@
... ...
}: let }: let
mod = "Mod4"; mod = "Mod4";
hyper = "Control+Shift+Mod1";
in { in {
home.file = { home.file = {
"bin/scripts/goup" = { "bin/scripts/goup" = {
@@ -132,35 +133,62 @@ in {
}; };
keybindings = lib.mkOptionDefault { keybindings = lib.mkOptionDefault {
"${hyper}+Return" = "exec kitty";
"${mod}+q" = "kill"; "${mod}+q" = "kill";
"${mod}+d" = "exec rofi -show drun"; "${mod}+d" = "exec rofi -show drun";
"${hyper}+q" = "kill";
"${hyper}+d" = "exec rofi -show drun";
"${mod}+h" = "focus left"; "${mod}+h" = "focus left";
"${mod}+j" = "focus down"; "${mod}+j" = "focus down";
"${mod}+k" = "focus up"; "${mod}+k" = "focus up";
"${mod}+l" = "focus right"; "${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+h" = "move left";
"${mod}+Shift+l" = "move right"; "${mod}+Shift+l" = "move right";
"${hyper}+y" = "move left";
"${hyper}+o" = "move right";
"${mod}+Tab" = "workspace back_and_forth"; "${mod}+Tab" = "workspace back_and_forth";
"${hyper}+Tab" = "workspace back_and_forth";
"${mod}+b" = "split h"; "${mod}+b" = "split h";
"${mod}+v" = "split v"; "${mod}+v" = "split v";
"${hyper}+b" = "split h";
"${hyper}+v" = "split v";
"${mod}+Control+Return" = "exec --no-startup-id i3utils workspace new"; "${mod}+Control+Return" = "exec --no-startup-id i3utils workspace new";
"${mod}+Control+Shift+Return" = "exec --no-startup-id i3utils workspace new -b"; "${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}+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+j" = "exec --no-startup-id $HOME/bin/scripts/godown";
"${mod}+Control+k" = "exec --no-startup-id $HOME/bin/scripts/goup"; "${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"; "${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+k" = "exec --no-startup-id i3utils window move prev";
"${mod}+Shift+j" = "exec --no-startup-id i3utils window move next"; "${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"; "${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"; "${mod}+Escape" = "exec loginctl lock-session";
"${hyper}+Escape" = "exec loginctl lock-session";
"${hyper}+f" = "fullscreen toggle";
"XF86MonBrightnessUp" = "exec xbacklight -inc 10"; "XF86MonBrightnessUp" = "exec xbacklight -inc 10";
"XF86MonBrightnessDown" = "exec xbacklight -dec 10"; "XF86MonBrightnessDown" = "exec xbacklight -dec 10";