forge
Explore
Log in

Don't you dare go Hollow

Drop client titlebars, disable hot corners

Browse files at this commit

192cda958860a49763df8243ffd7b63eeb9f129eAhmet Kaan GümüşParent: ca95dd4
  • feat
    • drop client titlebars, disable hot corners
Show full message
feat(niri): drop client titlebars, disable hot corners

prefer-no-csd asks clients to omit their own decorations, so niri's 2px
border is the only frame. Only reaches xdg-decoration clients (chromium,
mpv, alacritty, wezterm-gui, Qt6); GTK and Firefox keep their headerbars.
Costs the edge resize handles — Mod+right-drag still resizes.

hot-corners { off } — the top-left corner is active by default. `off`
must be a child node; `hot-corners off` is a KDL parse error.

Also: hotkey-overlay skip-at-startup, and the wallust gradient line.
.config/niri/config.kdlmodified+18 -1
@@ -8,6 +8,11 @@
88 //
99 // Mod = Super. Alt is the app-launcher trigger, matching Hyprland's $my_trigger.
1010
11+hotkey-overlay {
12+ // Do not pop the keybind cheat sheet on login. Mod+Shift+Slash still shows it.
13+ skip-at-startup
14+}
15+
1116 input {
1217 keyboard {
1318 xkb {
@@ -34,6 +39,18 @@ input {
3439 // cursor to the other output does make it the focused one.
3540 }
3641
42+// Ask every client to skip its own decorations, so niri's border is the only
43+// frame. Kills the CSD titlebar that showed the page/document title (Hyprland
44+// never had one because it sends server-side decorations by default).
45+prefer-no-csd
46+
47+gestures {
48+ // No overview/workspace switch when the pointer hits a screen corner.
49+ hot-corners {
50+ off
51+ }
52+}
53+
3754 // Hyprland had `bitdepth 10`; niri 26.04 has no bit-depth or hdr output key.
3855 output "DP-1" {
3956 mode "2560x1440@180"
@@ -88,7 +105,7 @@ layout {
88105 // change. niri has no `include`, so generated colors cannot live in a
89106 // separate file. Keep the marker directly above it, all on one line.
90107 // WALLUST-GRADIENT
91- active-gradient from="#7B6753" to="#BC7857" angle=90 in="oklch"
108+ active-gradient from="#4D0830" to="#7E420A" angle=90 in="oklch"
92109
93110 inactive-color "#595959aa"
94111 urgent-color "#9b0000"