69 lines
1.8 KiB
Nix
69 lines
1.8 KiB
Nix
{inputs, ...}: {
|
|
imports = [inputs.niri-flake.homeModules.niri];
|
|
|
|
programs.niri = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
input = {
|
|
keyboard = {
|
|
xkb = {
|
|
layout = "cz";
|
|
options = "caps:escape";
|
|
};
|
|
};
|
|
};
|
|
|
|
layout = {
|
|
gaps = 8;
|
|
|
|
preset-column-widths = [
|
|
{proportion = 0.33333;}
|
|
{proportion = 0.5;}
|
|
{proportion = 0.66667;}
|
|
{proportion = 1.0;}
|
|
];
|
|
|
|
preset-window-heights = [
|
|
{proportion = 0.33333;}
|
|
{proportion = 0.5;}
|
|
{proportion = 0.66667;}
|
|
{proportion = 1.0;}
|
|
];
|
|
};
|
|
|
|
prefer-no-csd = true;
|
|
cursor.size = 14;
|
|
screenshot-path = "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png";
|
|
|
|
input = {
|
|
keyboard.numlock = true;
|
|
warp-mouse-to-focus.enable = true;
|
|
focus-follows-mouse.enable = true;
|
|
};
|
|
|
|
binds = {
|
|
"Mod+Q".action.close-window = [];
|
|
"Mod+Return".action.spawn = ["kitty"];
|
|
"Mod+A".action.spawn = ["rofi" "-show" "drun"];
|
|
"Mod+B".action.spawn = ["firefox"];
|
|
|
|
"Mod+O".action.toggle-overview = ["repeat=false"];
|
|
|
|
"Mod+H".action.focus-column-left = [];
|
|
"Mod+L".action.focus-column-right = [];
|
|
"Mod+J".action.focus-window-down = [];
|
|
"Mod+K".action.focus-window-up = [];
|
|
|
|
"Mod+Minus".action.set-column-width = ["-10%"];
|
|
"Mod+Equal".action.set-column-width = ["+10%"];
|
|
|
|
"Mod+Shift+Q".action.quit = [];
|
|
|
|
"XF86AudioRaiseVolume".action.spawn = ["wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"];
|
|
"XF86AudioLowerVolume".action.spawn = ["wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"];
|
|
"xF86AudioMute".action.spawn = ["wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"];
|
|
};
|
|
};
|
|
};
|
|
}
|