moves
This commit is contained in:
parent
5cd0ded292
commit
2391c0fea7
1 changed files with 10 additions and 8 deletions
|
@ -1,4 +1,11 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
actions = config.lib.niri.actions;
|
||||
moves = n: if n == 0 then {} else {
|
||||
"Mod+${builtins.toString n}".action = actions.focus-workspace n;
|
||||
"Mod+Shift+${builtins.toString n}".action = { move-window-to-workspace = n; };
|
||||
} // moves (n - 1);
|
||||
in
|
||||
{
|
||||
environment = {
|
||||
"NIXOS_OZONE_WL" = "1";
|
||||
|
@ -17,14 +24,9 @@
|
|||
options = "grp:caps_toggle";
|
||||
};
|
||||
};
|
||||
binds = with config.lib.niri.actions; {
|
||||
binds = (with config.lib.niri.actions; {
|
||||
"Mod+A".action = spawn "fuzzel";
|
||||
"Mod+Q".action = spawn "wezterm";
|
||||
"Mod+1".action = focus-workspace 1;
|
||||
"Mod+2".action = focus-workspace 2;
|
||||
"Mod+3".action = focus-workspace 3;
|
||||
"Mod+4".action = focus-workspace 4;
|
||||
"Mod+5".action = focus-workspace 5;
|
||||
"Mod+Left".action = focus-column-left;
|
||||
"Mod+Right".action = focus-column-right;
|
||||
"Mod+Shift+Left".action = set-column-width "-5%";
|
||||
|
@ -34,6 +36,6 @@
|
|||
"Mod+F".action = fullscreen-window;
|
||||
"Mod+Shift+E".action = quit { skip-confirmation = true; };
|
||||
"Mod+C".action = close-window;
|
||||
"Mod+Shift+R".action = screenshot { write-to-disk = false; };
|
||||
};
|
||||
"Mod+Shift+R".action = screenshot {};
|
||||
}) // moves 9;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue