Fix workspace keybinds replacing all other keybinds
This commit is contained in:
parent
4a45f67fa4
commit
08a62cf353
1 changed files with 22 additions and 19 deletions
|
@ -63,30 +63,33 @@ in with lib; {
|
||||||
size = 8.0;
|
size = 8.0;
|
||||||
};
|
};
|
||||||
|
|
||||||
keybindings = (genWorkspaces { inherit (cfg.workspaces) numbered named; }) // {
|
keybindings = mkMerge [
|
||||||
"${mod}+h" = "focus left";
|
(genWorkspaces { inherit (cfg.workspaces) numbered named; })
|
||||||
"${mod}+j" = "focus down";
|
{
|
||||||
"${mod}+k" = "focus up";
|
"${mod}+h" = "focus left";
|
||||||
"${mod}+l" = "focus right";
|
"${mod}+j" = "focus down";
|
||||||
|
"${mod}+k" = "focus up";
|
||||||
|
"${mod}+l" = "focus right";
|
||||||
|
|
||||||
"${mod}+Shift+h" = "move left";
|
"${mod}+Shift+h" = "move left";
|
||||||
"${mod}+Shift+j" = "move down";
|
"${mod}+Shift+j" = "move down";
|
||||||
"${mod}+Shift+k" = "move up";
|
"${mod}+Shift+k" = "move up";
|
||||||
"${mod}+Shift+l" = "move right";
|
"${mod}+Shift+l" = "move right";
|
||||||
|
|
||||||
"${mod}+a" = "split v";
|
"${mod}+a" = "split v";
|
||||||
"${mod}+s" = "split h";
|
"${mod}+s" = "split h";
|
||||||
"${mod}+f" = "fullscreen toggle";
|
"${mod}+f" = "fullscreen toggle";
|
||||||
|
|
||||||
"${mod}+Alt+a" = "layout toggle stacking splitv";
|
"${mod}+Alt+a" = "layout toggle stacking splitv";
|
||||||
"${mod}+Alt+s" = "layout toggle tabbed splith";
|
"${mod}+Alt+s" = "layout toggle tabbed splith";
|
||||||
|
|
||||||
"${mod}+Return" = "exec ${terminal}";
|
"${mod}+Return" = "exec ${terminal}";
|
||||||
"${mod}+Escape" = "exec ${pkgs.swaylock}/bin/swaylock";
|
"${mod}+Escape" = "exec ${pkgs.swaylock}/bin/swaylock";
|
||||||
"${mod}+Tab" = "exec ${pkgs.firefox}/bin/firefox";
|
"${mod}+Tab" = "exec ${pkgs.firefox}/bin/firefox";
|
||||||
|
|
||||||
"${mod}+Backspace" = "mode kill";
|
"${mod}+Backspace" = "mode kill";
|
||||||
};
|
}
|
||||||
|
];
|
||||||
|
|
||||||
modes."kill" = {
|
modes."kill" = {
|
||||||
Backspace = "kill; mode default";
|
Backspace = "kill; mode default";
|
||||||
|
|
Loading…
Reference in a new issue