diff --git a/.config/niri/config.kdl b/.config/niri/config.kdl index a6b1f97..004f889 100644 --- a/.config/niri/config.kdl +++ b/.config/niri/config.kdl @@ -7,13 +7,33 @@ output "eDP-1" { // Uncomment the next line to disable this output: // off transform "270" // rotate 90°; use "270" if it’s the other way. :contentReference[oaicite:1]{index=1} - // scale 1.25 // optional UI scaling + scale 1.6 // optional UI scaling +} + +input { + touch { + map-to-output "eDP-1" + } +} + +switch-events { + tablet-mode-on { spawn "bash" "-c" "gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true"; } + tablet-mode-off { spawn "bash" "-c" "gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false"; } } // --------- LAYOUT / LOOK --------- layout { - gaps 5 - default-column-width { proportion 0.5; } + gaps 7 + default-column-width { proportion 0.8; } + focus-ring { + width 4 + } + shadow { + softness 30 + spread 5 + offset x=0 y=5 + + } } // --------- STARTUP DAEMONS --------- @@ -21,25 +41,50 @@ spawn-at-startup "waybar" // bar spawn-at-startup "mako" // notifications spawn-at-startup "blueman-applet" // bluetooth tray spawn-at-startup "nm-applet" // network tray -// (spawn-at-startup works like a “spawn” action at session start.) :contentReference[oaicite:2]{index=2} +spawn-at-startup "swaybg" "-i" "/home/tyler/.desktop/wallpaper/main.jpg" "-m" "fill" // Screenshots path used by niri’s built-in screenshot actions. screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png" -// --------- KEYBINDS (DWM muscle memory) --------- -binds { - // Launchers / commands (from your config.h) - Mod+Shift+Return { spawn "kitty"; } +prefer-no-csd - // Focus like DWM: j/k - Mod+J { focus-window-down; } // next client in column - Mod+K { focus-window-up; } // prev client in column // :contentReference[oaicite:3]{index=3} +environment { + ELECTRON_OZONE_PLATFORM_HINT "auto" +} + +binds { + Mod+Shift+Return { spawn "kitty"; } + Mod+P { spawn "fuzzel"; } + + // Move around in the same column + // Mod+J { focus-window-down; } // next client in column + // Mod+K { focus-window-up; } // prev client in column // :contentReference[oaicite:3]{index=3} + // // Move aroudn side by side + // Mod+H { focus-column-left; } + // Mod+L { focus-column-right; } + + Mod+J { focus-window-down-or-column-right; } // next client in column + Mod+K { focus-window-up-or-column-left; } // prev client in column // :contentReference[oaicite:3]{index=3} + // Move aroudn side by side + // Mod+H { focus-column-left; } + // Mod+L { focus-column-right; } + + // Monitors (focus/tag mon) + Mod+Shift+L { focus-monitor-right; } + Mod+Shift+H { focus-monitor-left; } + Mod+Shift+I { move-column-to-monitor-previous; } + Mod+Shift+U { move-column-to-monitor-next; } + + // “shiftview” between workspaces + Mod+Shift+K { focus-workspace-up; } + Mod+Shift+J { focus-workspace-down; } // :contentReference[oaicite:8]{index=8} // Master-ish resizing Mod+H { set-column-width "-10%"; } Mod+L { set-column-width "+10%"; } - Mod+I { set-window-height "+10%"; } - Mod+D { set-window-height "-10%"; } + + // Mod+I { set-window-height "+10%"; } + // Mod+D { set-window-height "-10%"; } // “Zoom” feel (cycle preset column widths) Mod+Return { switch-preset-column-width; } // builtin behavior in niri releases. :contentReference[oaicite:4]{index=4} @@ -55,13 +100,8 @@ binds { Mod+M { fullscreen-window; } // monocle-like fullscreen Mod+T { maximize-column; } // tile-ish column maximize - // Overview (since DWM’s “view all” has no true analogue) Mod+0 { toggle-overview; } // overview feature in new niri. :contentReference[oaicite:7]{index=7} - // “shiftview” between workspaces - Mod+Shift+K { focus-workspace-up; } - Mod+Shift+J { focus-workspace-down; } // :contentReference[oaicite:8]{index=8} - // View workspaces 1..9 (DWM TAGKEYS view) Mod+1 { focus-workspace 1; } Mod+2 { focus-workspace 2; } @@ -85,11 +125,6 @@ binds { Mod+Shift+8 { move-column-to-workspace 8; } Mod+Shift+9 { move-column-to-workspace 9; } // :contentReference[oaicite:10]{index=10} - // Monitors (focus/tag mon) - Mod+Shift+L { focus-monitor-right; } - Mod+Shift+H { focus-monitor-left; } - Mod+Shift+I { move-column-to-monitor-up; } - Mod+Shift+U { move-column-to-monitor-down; } // Quit (DWM Mod+Shift+Q) Mod+Shift+Q { quit skip-confirmation=true; }