Window Appearance
How to disable client-side decorations/make windows rectangular?
How to disable client-side decorations/make windows rectangular?
prefer-no-csd setting at the top level of your config, then restart your apps:Why are transparent windows tinted? Why is the border/focus ring showing through?
Why are transparent windows tinted? Why is the border/focus ring showing through?
prefer-no-csd setting at the top level of your config, then restart your apps:draw-border-with-background window rule.How to enable rounded corners for all windows?
How to enable rounded corners for all windows?
Why does Firefox or Thunderbird have 1 px smaller border?
Why does Firefox or Thunderbird have 1 px smaller border?
clip-to-geometry true window rule:User Interface
How to hide the 'Important Hotkeys' pop-up at the start?
How to hide the 'Important Hotkeys' pop-up at the start?
X11 and Xwayland
How to run X11 apps like Steam or Discord?
How to run X11 apps like Steam or Discord?
Why doesn't niri integrate Xwayland like other compositors?
Why doesn't niri integrate Xwayland like other compositors?
- Integrating Xwayland is quite a bit of work, as the compositor needs to implement parts of an X11 window manager
- You need to appease X11 ideas of windowing, whereas niri aims to have the best code for Wayland
- Niri doesn’t have a good global coordinate system required by X11
- X11 tends to generate an endless stream of bugs that take time away from other tasks
- There aren’t actually that many X11-only clients nowadays, and xwayland-satellite handles most of those well
- Niri isn’t a Big Serious Desktop Environment which Must Support All Use Cases
Features and Effects
Can I enable blur behind semitransparent windows?
Can I enable blur behind semitransparent windows?
Can I make a window sticky/pinned/always on top/appear on all workspaces?
Can I make a window sticky/pinned/always on top/appear on all workspaces?
toggle-follow-mode feature.Window Placement
How do I make the Bitwarden window in Firefox open as floating?
How do I make the Bitwarden window in Firefox open as floating?
open-floating window rule.Solution: Use a script, for example this one. Search niri issues and discussions for other Bitwarden solutions.Can I open a window directly in the current column/in the same column as another window?
Can I open a window directly in the current column/in the same column as another window?
consume-or-expel-window-left.Adding this directly to niri is challenging:- Computing exact initial window sizes in relation to other windows in a column is complex
- Edge cases need handling (column disappearing, new windows added before target window appears)
- It’s unclear what kind of simple setting would be useful for different user needs (parent PID rules, etc.)
Input and Focus
Why does moving the mouse against a monitor edge focus the next window, but only sometimes?
Why does moving the mouse against a monitor edge focus the next window, but only sometimes?
focus-follows-mouse. When using client-side decorations, windows have margins outside their geometry for mouse resizing handles. These margins “peek out” of the monitor edges and trigger focus-follows-mouse when the mouse crosses them.Why it doesn’t always happen:- Some toolkits don’t put resize handles outside the window geometry
- If the current window has its own margin extending to the monitor edge, the mouse never leaves the current window
Screen Locking
How do I recover from a dead screen locker/from a red screen?
How do I recover from a dead screen locker/from a red screen?
- Press Ctrl+Alt+F3 to switch to a different TTY
- Spawn a screen locker to niri’s Wayland display:
allow-when-locked=true on your screen locker bind:Output Configuration
How do I change output configuration based on connected monitors?
How do I change output configuration based on connected monitors?
-
Launch Kanshi from your niri config:
-
Create a Kanshi config. Example for scaling laptop display differently when external monitor is connected: