diff options
| author | José Juan Loeza Sierra <jj@xz6ze.com> | 2025-07-15 16:32:17 -0700 |
|---|---|---|
| committer | José Juan Loeza Sierra <jj@xz6ze.com> | 2025-07-16 11:11:11 -0700 |
| commit | acf8c332f79322ad76427e5736cbe2caae779a53 (patch) | |
| tree | 87ee9ad843188a2c19a790f4ab062f4940b01f7c /dot-config/niri/config.kdl | |
| parent | 5fdb0c6e8871cc62d04119153a48672e24734b9c (diff) | |
add niri config changes
setup builtin display
skip hotkey overlay at startup
add brightness change binds
add swayidle and swaync to niri
disable touchpad tap
remove waybar, swayidle, swaync from niri
will prefer to launch them with systemd
see https://github.com/YaLTeR/niri/wiki/Example-systemd-Setup
add max volume to raise volume
change quit window to mod+shift+q
I tend to accidentally close windows without the `shift`
add external monitors
change volume increments to .05
change swaylock color
change gap size
change layout active-color
prefer-no-csd
Diffstat (limited to 'dot-config/niri/config.kdl')
| -rw-r--r-- | dot-config/niri/config.kdl | 61 |
1 files changed, 45 insertions, 16 deletions
diff --git a/dot-config/niri/config.kdl b/dot-config/niri/config.kdl index 331db5d..3160480 100644 --- a/dot-config/niri/config.kdl +++ b/dot-config/niri/config.kdl @@ -25,7 +25,7 @@ input { // Omitting settings disables them, or leaves them at their default values. touchpad { // off - tap + // tap // dwt // dwtp // drag false @@ -69,7 +69,7 @@ input { // Find more information on the wiki: // https://github.com/YaLTeR/niri/wiki/Configuration:-Outputs // Remember to uncomment the node by removing "/-"! -/-output "eDP-1" { +output "eDP-1" { // Uncomment this line to disable this output. // off @@ -79,7 +79,7 @@ input { // for the resolution. // If the mode is omitted altogether or is invalid, niri will pick one automatically. // Run `niri msg outputs` while inside a niri instance to list all outputs and their modes. - mode "1920x1080@120.030" + mode "2880x1920@120.000" // You can use integer or fractional scale, for example use 1.5 for 150% scale. scale 2 @@ -97,7 +97,29 @@ input { // so to put another output directly adjacent to it on the right, set its x to 1920. // If the position is unset or results in an overlap, the output is instead placed // automatically. - position x=1280 y=0 + // position x=1280 y=0 + + // Background + background-color "#000000" +} + +// External montiors +// Specified in this way to not have to worry about which DP output corresponds to which monitor +// +// Primary external monitor +output "Dell Inc. DELL U2419HX 72Y65N2" { + mode "1920x1080@60.000" + scale 1 + transform "normal" + background-color "#000000" +} +// +// Secondary external monitor +output "Dell Inc. DELL U2419HX 5TKH6R2" { + mode "1920x1080@60.000" + scale 1 + transform "normal" + background-color "#000000" } // Settings that influence how windows are positioned and sized. @@ -105,7 +127,7 @@ input { // https://github.com/YaLTeR/niri/wiki/Configuration:-Layout layout { // Set gaps around windows in logical pixels. - gaps 16 + gaps 4 // When to center a column when changing focus, options are: // - "never", default behavior, focusing an off-screen column will keep at the left @@ -161,7 +183,7 @@ layout { // - CSS-like notation: "rgb(255, 127, 0)", rgba(), hsl() and a few others. // Color of the ring on the active monitor. - active-color "#7fc8ff" + active-color "#7c6f64" // Color of the ring on inactive monitors. inactive-color "#505050" @@ -254,15 +276,12 @@ layout { // which may be more convenient to use. // See the binds section below for more spawn examples. -// This line starts waybar, a commonly used bar for Wayland compositors. -spawn-at-startup "waybar" - // Uncomment this line to ask the clients to omit their client-side decorations if possible. // If the client will specifically ask for CSD, the request will be honored. // Additionally, clients will be informed that they are tiled, removing some client-side rounded corners. // This option will also fix border/focus ring drawing behind some semitransparent windows. // After enabling or disabling this, you need to restart the apps for this to take effect. -// prefer-no-csd +prefer-no-csd // You can change the path where screenshots are saved. // A ~ at the front will be expanded to the home directory. @@ -341,9 +360,9 @@ binds { Mod+Shift+Slash { show-hotkey-overlay; } // Suggested binds for running programs: terminal, app launcher, screen locker. - Mod+T hotkey-overlay-title="Open a Terminal: alacritty" { spawn "alacritty"; } - Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; } - Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; } + Mod+Return hotkey-overlay-title="Open a Terminal: kitty" { spawn "kitty"; } + Mod+Space hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; } + Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock" "-f" "-c" "000000"; } // 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. @@ -351,17 +370,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-"; } + XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05+" "-l" "1"; } + XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05-"; } 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"; } + + // Brightness binds + XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "set" "5%-"; } + XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "set" "5%+"; } // 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+Shift+Q { close-window; } Mod+Left { focus-column-left; } Mod+Down { focus-window-down; } @@ -582,3 +605,9 @@ binds { // moving the mouse or pressing any other key. Mod+Shift+P { power-off-monitors; } } + +// Skip hotkey overlay at startup +// https://github.com/YaLTeR/niri/wiki/FAQ#how-to-hide-the-important-hotkeys-pop-up-at-the-start +hotkey-overlay { + skip-at-startup +} |
