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 @@
8 //8 //
9 // Mod = Super. Alt is the app-launcher trigger, matching Hyprland's $my_trigger.9 // Mod = Super. Alt is the app-launcher trigger, matching Hyprland's $my_trigger.
10 10
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+
11 input {16 input {
12 keyboard {17 keyboard {
13 xkb {18 xkb {
@@ -34,6 +39,18 @@ input {
34 // cursor to the other output does make it the focused one.39 // cursor to the other output does make it the focused one.
35 }40 }
36 41
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+
37 // Hyprland had `bitdepth 10`; niri 26.04 has no bit-depth or hdr output key.54 // Hyprland had `bitdepth 10`; niri 26.04 has no bit-depth or hdr output key.
38 output "DP-1" {55 output "DP-1" {
39 mode "2560x1440@180"56 mode "2560x1440@180"
@@ -88,7 +105,7 @@ layout {
88 // change. niri has no `include`, so generated colors cannot live in a105 // change. niri has no `include`, so generated colors cannot live in a
89 // separate file. Keep the marker directly above it, all on one line.106 // separate file. Keep the marker directly above it, all on one line.
90 // WALLUST-GRADIENT107 // WALLUST-GRADIENT
91- active-gradient from="#7B6753" to="#BC7857" angle=90 in="oklch"108+ active-gradient from="#4D0830" to="#7E420A" angle=90 in="oklch"
92 109
93 inactive-color "#595959aa"110 inactive-color "#595959aa"
94 urgent-color "#9b0000"111 urgent-color "#9b0000"