Add more Niri hotkeys
This commit is contained in:
parent
032439e4dc
commit
66300cae57
8 changed files with 29 additions and 37 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, ... }:
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
./autostart
|
||||
|
@ -10,7 +10,12 @@
|
|||
./theme
|
||||
];
|
||||
|
||||
home.file.".config/niri/config.kdl".text = ''
|
||||
options.home.niri.settings = lib.mkOption {
|
||||
type = lib.types.attrs;
|
||||
default = {};
|
||||
};
|
||||
|
||||
config.home.file.".config/niri/config.kdl".text = ''
|
||||
${builtins.readFile config.home.niri.settings.autostart}
|
||||
${builtins.readFile config.home.niri.settings.hotkeys}
|
||||
${builtins.readFile config.home.niri.settings.inputs}
|
||||
|
|
|
@ -144,6 +144,7 @@
|
|||
${primeMod}+Shift+f { fullscreen-window; }
|
||||
|
||||
// Niri specific
|
||||
${primeMod}+r { switch-preset-column-width; }
|
||||
${primeMod}+Shift+r { reset-window-height; }
|
||||
${primeMod}+Shift+c { center-column; }
|
||||
}
|
||||
|
|
|
@ -4,19 +4,25 @@
|
|||
prefer-no-csd
|
||||
|
||||
layout {
|
||||
gaps 7
|
||||
center-focused-column "never"
|
||||
default-column-width { proportion 0.5; }
|
||||
|
||||
focus-ring {
|
||||
off
|
||||
}
|
||||
|
||||
border {
|
||||
width 3
|
||||
active-color "#${config.look.colors.prime}"
|
||||
inactive-color "#${config.look.colors.split}"
|
||||
}
|
||||
|
||||
focus-ring {
|
||||
off
|
||||
}
|
||||
|
||||
gaps 7
|
||||
center-focused-column "never"
|
||||
default-column-width { proportion 0.5; }
|
||||
|
||||
preset-column-widths {
|
||||
proportion 0.33333
|
||||
proportion 0.5
|
||||
proportion 0.66667
|
||||
}
|
||||
}
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue