feat(niri): update config file

This commit is contained in:
pips 2025-09-23 21:43:51 +02:00
parent 7a8d55039c
commit b1cc5a52d0

View file

@ -17,6 +17,9 @@ input {
// options "grp:win_space_toggle,compose:ralt,ctrl:nocaps" // options "grp:win_space_toggle,compose:ralt,ctrl:nocaps"
layout "fr" layout "fr"
} }
// Enable numlock on startup, omitting this setting disables it.
numlock
} }
// Next sections include libinput settings. // Next sections include libinput settings.
@ -61,6 +64,13 @@ input {
focus-follows-mouse max-scroll-amount="50%" focus-follows-mouse max-scroll-amount="50%"
} }
// Disable overview in hot-corners
gestures {
hot-corners {
off
}
}
cursor { cursor {
hide-when-typing hide-when-typing
hide-after-inactive-ms 5000 hide-after-inactive-ms 5000
@ -345,6 +355,9 @@ layout {
active-color "#ffc87f" active-color "#ffc87f"
inactive-color "#505050" inactive-color "#505050"
// Color of the border around windows that request your attention.
urgent-color "#9b0000"
// active-gradient from="#ffbb66" to="#ffc880" angle=45 relative-to="workspace-view" // active-gradient from="#ffbb66" to="#ffc880" angle=45 relative-to="workspace-view"
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view" // inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
} }
@ -361,7 +374,7 @@ layout {
// radius. It has to assume that windows have square corners, leading to // radius. It has to assume that windows have square corners, leading to
// shadow artifacts inside the CSD rounded corners. This setting fixes // shadow artifacts inside the CSD rounded corners. This setting fixes
// those artifacts. // those artifacts.
// //
// However, instead you may want to set prefer-no-csd and/or // However, instead you may want to set prefer-no-csd and/or
// geometry-corner-radius. Then, niri will know the corner radius and // geometry-corner-radius. Then, niri will know the corner radius and
// draw the shadow correctly, without having to draw it behind the // draw the shadow correctly, without having to draw it behind the
@ -516,12 +529,12 @@ binds {
// Suggested binds for running programs: terminal, app launcher, screen locker. // Suggested binds for running programs: terminal, app launcher, screen locker.
//Mod+T { spawn "alacritty"; } //Mod+T { spawn "alacritty"; }
Mod+T { spawn "kitty"; } Mod+T hotkey-overlay-title="Open a Terminal: kitty" { spawn "kitty"; }
Mod+Shift+Return { spawn "kitty"; } Mod+Shift+Return { spawn "kitty"; }
//Mod+D { spawn "fuzzel"; } //Mod+D { spawn "fuzzel"; }
Mod+P { spawn "fuzzel"; } Mod+P hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
//Mod+G { spawn "bemenu-run"; } //Mod+G { spawn "bemenu-run"; }
Super+Alt+L { spawn "swaylock"; } Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
// You can also use a shell. Do this if you need pipes, multiple commands, etc. // You can also use a shell. Do this if you need pipes, multiple commands, etc.
// Note: the entire command goes as a single argument in the end. // Note: the entire command goes as a single argument in the end.
@ -529,10 +542,21 @@ binds {
// Example volume keys mappings for PipeWire & WirePlumber. // Example volume keys mappings for PipeWire & WirePlumber.
// The allow-when-locked=true property makes them work even when the session is locked. // The allow-when-locked=true property makes them work even when the session is locked.
XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"; } XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+"; }
XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"; } XF86AudioLowerVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1-"; }
XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; } XF86AudioMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; }
XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; } XF86AudioMicMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; }
// Example brightness key mappings for brightnessctl.
// You can use regular spawn with multiple arguments too (to avoid going through "sh"),
// but you need to manually put each argument in separate "" quotes.
XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "+10%"; }
XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "10%-"; }
// Open/close the Overview: a zoomed-out view of workspaces and windows.
// You can also move the mouse into the top-left hot corner,
// or do a four-finger swipe up on a touchpad.
Mod+O repeat=false { toggle-overview; }
Mod+Q { close-window; } Mod+Q { close-window; }
@ -729,6 +753,9 @@ binds {
Mod+C { center-column; } Mod+C { center-column; }
// Center all fully visible columns on screen.
Mod+Ctrl+C { center-visible-columns; }
// Finer width adjustments. // Finer width adjustments.
// This command can also: // This command can also:
// * set width in pixels: "1000" // * set width in pixels: "1000"