environment { "XDG_CURRENT_DESKTOP" "niri" "XDG_SESSION_DESKTOP" "niri" "QT_QPA_PLATFORM" "wayland;xcb" "NIXOS_OZONE_WL" "1" "_JAVA_AWT_WM_NONREPARENTING" "1" "PATH" "__HOME__/.local/bin:__HOME__/.local/state/niri-beyond-glass/nix-profile/bin:/usr/local/bin:/usr/bin:/bin" } input { keyboard { numlock } touchpad { tap natural-scroll } mouse { accel-profile "flat" } } spawn-at-startup "xwayland-satellite" spawn-at-startup "/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1" spawn-sh-at-startup "systemctl --user start dms.service" hotkey-overlay { skip-at-startup } prefer-no-csd screenshot-path "~/Pictures/Screenshots/niri-%Y-%m-%d-%H-%M-%S.png" animations { slowdown 0.85 } layout { gaps 8 center-focused-column "never" background-color "transparent" preset-column-widths { proportion 0.33333 proportion 0.5 proportion 0.66667 } default-column-width { proportion 0.5 } focus-ring { width 2 active-color "#afac9c" inactive-color "#43423c" urgent-color "#ca8685" } border { off width 2 active-color "#afac9c" inactive-color "#43423c" urgent-color "#ca8685" } shadow { on softness 30 spread -5 offset x=0 y=8 color "#00000070" } tab-indicator { active-color "#afac9c" inactive-color "#43423c" urgent-color "#ca8685" } insert-hint { color "#afac9c80" } } window-rule { match app-id=".*" exclude app-id=r#"^org\.kde\.krita$"# opacity 0.80 geometry-corner-radius 12 clip-to-geometry true tiled-state true draw-border-with-background false background-effect { blur true xray true noise 0.025 saturation 0.95 } } window-rule { match app-id=r#"^org\.kde\.krita$"# opacity 1.0 background-effect { blur false } } window-rule { match app-id=r#"(?i)^alacritty$"# opacity 0.88 geometry-corner-radius 12 clip-to-geometry true default-column-width { proportion 0.5 } background-effect { blur true xray true noise 0.025 saturation 0.95 } } window-rule { match app-id=r#"(?i)^(firefox|org\.mozilla\.firefox|google-chrome|chromium|brave-browser|zen-browser)$"# opacity 1.0 default-column-width { proportion 0.62 } } window-rule { match app-id=r#"(?i)^(mpv|vlc|io\.github\.celluloid_player\.Celluloid|org\.gnome\.Totem)$"# opacity 1.0 } window-rule { match app-id=r#"^org\.gnome\.(Calculator|Settings|Loupe)$"# open-floating true default-column-width { proportion 0.36 } } window-rule { match app-id=r#"^steam$"# opacity 1.0 default-column-width { proportion 0.70 } } binds { Mod+Return hotkey-overlay-title="打开终端" { spawn "alacritty" } Mod+D hotkey-overlay-title="应用启动器" { spawn "dms" "ipc" "call" "spotlight" "toggle" } Mod+Ctrl+Return hotkey-overlay-title="应用启动器" { spawn "dms" "ipc" "call" "spotlight" "toggle" } Mod+B hotkey-overlay-title="打开浏览器" { spawn "niri-beyond-browser" } Mod+E hotkey-overlay-title="文件管理器" { spawn "nautilus" } Mod+A hotkey-overlay-title="控制中心" { spawn "dms" "ipc" "call" "control-center" "toggle" } Mod+Shift+Q hotkey-overlay-title="电源菜单" { spawn "dms" "ipc" "call" "powermenu" "toggle" } Mod+Shift+B hotkey-overlay-title="刷新桌面壳" { spawn "niri-beyond-refresh" } Mod+Shift+Escape hotkey-overlay-title="显示快捷键说明" { show-hotkey-overlay } }