diff --git a/private_dot_config/niri/config.kdl b/private_dot_config/niri/config.kdl index e970012..30f5b7b 100644 --- a/private_dot_config/niri/config.kdl +++ b/private_dot_config/niri/config.kdl @@ -17,6 +17,9 @@ input { // options "grp:win_space_toggle,compose:ralt,ctrl:nocaps" layout "fr" } + + // Enable numlock on startup, omitting this setting disables it. + numlock } // Next sections include libinput settings. @@ -61,6 +64,13 @@ input { focus-follows-mouse max-scroll-amount="50%" } +// Disable overview in hot-corners +gestures { + hot-corners { + off + } +} + cursor { hide-when-typing hide-after-inactive-ms 5000 @@ -345,6 +355,9 @@ layout { active-color "#ffc87f" 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" // 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 // shadow artifacts inside the CSD rounded corners. This setting fixes // those artifacts. - // + // // However, instead you may want to set prefer-no-csd and/or // geometry-corner-radius. Then, niri will know the corner radius and // 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. //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+D { spawn "fuzzel"; } - Mod+P { spawn "fuzzel"; } + Mod+P hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; } //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. // Note: the entire command goes as a single argument in the end. @@ -529,10 +542,21 @@ binds { // Example volume keys mappings for PipeWire & WirePlumber. // 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+"; } - XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"; } - XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; } - XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; } + XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "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-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ 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; } @@ -729,6 +753,9 @@ binds { Mod+C { center-column; } + // Center all fully visible columns on screen. + Mod+Ctrl+C { center-visible-columns; } + // Finer width adjustments. // This command can also: // * set width in pixels: "1000"