feat(niri): more config
This commit is contained in:
parent
0e485fee7d
commit
41df33c7ae
1 changed files with 29 additions and 4 deletions
|
@ -48,8 +48,12 @@
|
||||||
package = pkgs.niri;
|
package = pkgs.niri;
|
||||||
settings = {
|
settings = {
|
||||||
input = {
|
input = {
|
||||||
keyboard.xkb.layout = "fr";
|
keyboard = {
|
||||||
keyboard.xkb.options = "compose:rctrl";
|
xkb.layout = "fr";
|
||||||
|
xkb.options = "compose:rctrl";
|
||||||
|
repeat-delay = 300;
|
||||||
|
repeat-rate = 100;
|
||||||
|
};
|
||||||
touchpad = {
|
touchpad = {
|
||||||
tap = true;
|
tap = true;
|
||||||
natural-scroll = true;
|
natural-scroll = true;
|
||||||
|
@ -57,17 +61,28 @@
|
||||||
};
|
};
|
||||||
mouse.accel-profile = "flat";
|
mouse.accel-profile = "flat";
|
||||||
warp-mouse-to-focus = true;
|
warp-mouse-to-focus = true;
|
||||||
focus-follows-mouse.max-scroll-amount = "0%";
|
focus-follows-mouse.enable = true;
|
||||||
};
|
};
|
||||||
outputs."eDP-1" = { scale = 1; };
|
outputs."eDP-1" = { scale = 1; };
|
||||||
layout = {
|
layout = {
|
||||||
gaps = 10;
|
gaps = 10;
|
||||||
|
default-column-width.proportion = 0.5;
|
||||||
|
preset-window-heights = [{ proportion = 1.0 / 2.0; }];
|
||||||
focus-ring = {
|
focus-ring = {
|
||||||
width = 4;
|
width = 4;
|
||||||
active.color = "#35f835e5";
|
active.color = "#35f835e5";
|
||||||
inactive.color = "#80808080";
|
inactive.color = "#80808080";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
workspaces = {
|
||||||
|
w1 = { name = "admin"; };
|
||||||
|
w2 = { name = "everything"; };
|
||||||
|
w3 = { name = "apps"; };
|
||||||
|
};
|
||||||
|
window-rules = [{
|
||||||
|
matches = [{ app-id = "im.riot.Riot"; }];
|
||||||
|
open-on-workspace = "apps";
|
||||||
|
}];
|
||||||
prefer-no-csd = true;
|
prefer-no-csd = true;
|
||||||
screenshot-path = "~/screenshots/%Y%m%d%H%m%N.png";
|
screenshot-path = "~/screenshots/%Y%m%d%H%m%N.png";
|
||||||
binds = with config.lib.niri.actions; {
|
binds = with config.lib.niri.actions; {
|
||||||
|
@ -86,6 +101,14 @@
|
||||||
allow-when-locked = true;
|
allow-when-locked = true;
|
||||||
action = spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle";
|
action = spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle";
|
||||||
};
|
};
|
||||||
|
"XF86MonBrightnessDown" = {
|
||||||
|
allow-when-locked = true;
|
||||||
|
action = spawn "brightnessctl" "set" "10-";
|
||||||
|
};
|
||||||
|
"XF86MonBrightnessUp" = {
|
||||||
|
allow-when-locked = true;
|
||||||
|
action = spawn "brightnessctl" "set" "+10";
|
||||||
|
};
|
||||||
"Mod+Shift+Q".action = close-window;
|
"Mod+Shift+Q".action = close-window;
|
||||||
"Mod+A".action = focus-column-left;
|
"Mod+A".action = focus-column-left;
|
||||||
"Mod+Z".action = focus-window-or-workspace-up;
|
"Mod+Z".action = focus-window-or-workspace-up;
|
||||||
|
@ -122,7 +145,9 @@
|
||||||
"Print".action = screenshot-screen;
|
"Print".action = screenshot-screen;
|
||||||
"Shift+Print".action = screenshot;
|
"Shift+Print".action = screenshot;
|
||||||
"Alt+Print".action = screenshot-window;
|
"Alt+Print".action = screenshot-window;
|
||||||
"Mod+Shift+Backspace".action = quit;
|
"Mod+Shift+Backspace" = {
|
||||||
|
action = quit { skip-confirmation = true; };
|
||||||
|
};
|
||||||
"XF86Display".action = power-off-monitors;
|
"XF86Display".action = power-off-monitors;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue