From 1ce3615232f9616b7e6b7302c7aaf6a2042ad84b Mon Sep 17 00:00:00 2001 From: nithonaj Date: Thu, 12 Jun 2025 22:41:41 -0400 Subject: [PATCH] add: niri config --- .config/niri/config.kdl | 146 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 .config/niri/config.kdl diff --git a/.config/niri/config.kdl b/.config/niri/config.kdl new file mode 100644 index 0000000..c9ef100 --- /dev/null +++ b/.config/niri/config.kdl @@ -0,0 +1,146 @@ +input { + keyboard { + xkb { + + } + + numlock + } + + touchpad { + tap + drag true + natural-scroll + disabled-on-external-mouse + } + + mouse { + + } + + tablet { + map-to-output "" // Monitor to map tablet to + } + + touch { + off + } + + warp-mouse-to-focus mode="center-xy" + //workspace-auto-back-and-forth + + mod-key "Super" + mod-key-nested "Super" +} + +// Monitor configs go here +output "" { + +} + +binds { + Mod+H { focus-column-left; } + Mod+J { focus-window-down; } + Mod+K { focus-window-up; } + Mod+L { focus-column-right; } + Mod+Shift+H { focus-monitor-left; } + Mod+Shift+J { focus-workspace-down; } + Mod+Shift+K { focus-workspace-up; } + Mod+Shift+L { focus-monitor-right; } + Mod+Ctrl+H { move-column-left; } + Mod+Ctrl+J { move-window-down-or-to-workspace-down; } + Mod+Ctrl+K { move-window-up-or-to-workspace-up; } + Mod+Ctrl+L { move-column-right; } + Mod+Ctrl+Shift+H { move-column-to-monitor-left; } + Mod+Ctrl+Shift+L { move-column-to-monitor-right; } + Mod+Ctrl+Alt+H { consume-window-into-column; } + Mod+Ctrl+Alt+L { expel-window-from-column; } + + Mod+Tab { toggle-column-tabbed-display; } + + Mod+Space { toggle-window-floating; } + Mod+Shift+Space { switch-focus-between-floating-and-tiling; } + Mod+Alt+Space { toggle-overview; } + + Mod+Minus { set-column-width "-10%"; } + Mod+Equal { set-column-width "+10%"; } + Mod+Alt+Minus { set-window-height "-10%"; } + Mod+Alt+Equal { set-window-height "+10%"; } + + Alt+F4 { close-window; } + Mod+Q { close-window; } + Mod+F { maximize-column; } + Mod+F11 { fullscreen-window; } + + Mod+Escape { spawn "wlogout"; } + + Mod+Return { spawn "ghostty"; } + Mod+Shift+Return { spawn "wofi"; } + + XF86AudioRaiseVolume { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "1+";} + XF86AudioLowerVolume { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "1-";} + + Print { screenshot; } +} + +switch-events { + //lid-close {;} + //lid-open {;} +} + +layout { + focus-ring { + + } +} + +window-rule { + geometry-corner-radius 10 + clip-to-geometry true +} + +window-rule { + match app-id="steam" title=r#"^notificationtoasts_\d+_desktop$"# + + default-floating-position x=0 y=0 relative-to="bottom-right" + open-focused false + focus-ring { + off + } +} + +layer-rule { + match namespace="^notifications$" + + block-out-from "screencast" +} + +animations { + config-notification-open-close { + duration-ms 100 + curve "ease-out-expo" + } +} + +gestures { + hot-corners { + off + } +} + +environment { + XDG_SESSION_TYPE "wayland" + XDG_CURRENT_DESKTOP "GNOME" + QT_QPA_PLATFORM "wayland" + ELECTRON_OZONE_PLATFORM_HINT "auto" + DISPLAY ":0" +} + +spawn-at-startup "ironbar" +spawn-at-startup "xwayland-satellite" +spawn-at-startup "swaync" +spawn-at-startup "" // Background thing goes here + +hotkey-overlay { + skip-at-startup +}