From e5da62d8fd5a5d1ea62a48787370881275d5a322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Tue, 27 Oct 2026 05:43:29 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(niri):=20hide=20empty=20named?= =?UTF-8?q?=20workspaces=20and=20label=20them=20by=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Named workspaces use the fork's hidden flag, so they only exist while they have windows. Noctalia's workspace widget shows their first two letters instead of their index. --- .config/niri/config.kdl | 16 +++++++++------- .config/noctalia/widgets.toml | 5 +++++ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.config/niri/config.kdl b/.config/niri/config.kdl index a42a9f9..3a136ac 100644 --- a/.config/niri/config.kdl +++ b/.config/niri/config.kdl @@ -139,25 +139,25 @@ debug { } workspace "code" { - // hidden // pinned workspaces: not reimplemented in the custom niri build yet + hidden } workspace "github" { - // hidden // pinned workspaces: not reimplemented in the custom niri build yet + hidden } workspace "whatsapp" { - // hidden // pinned workspaces: not reimplemented in the custom niri build yet + hidden } workspace "discord" { - // hidden // pinned workspaces: not reimplemented in the custom niri build yet + hidden } workspace "deezer" { - // hidden // pinned workspaces: not reimplemented in the custom niri build yet + hidden } workspace "youtube" { - // hidden // pinned workspaces: not reimplemented in the custom niri build yet + hidden } workspace "mail" { - // hidden // pinned workspaces: not reimplemented in the custom niri build yet + hidden } binds { Alt+T hotkey-overlay-title="Terminal: wezterm" { spawn-sh "wezterm start --always-new-process"; } @@ -268,6 +268,8 @@ binds { Mod+End { focus-column-last; } Mod+Tab { focus-window-previous; } // Alt+Tab / Alt+Shift+Tab left unbound: niri's built-in recent-windows switcher (live previews) + // Noctalia's switcher has previews too (toplevel capture in the niri fork), but its first + // Alt+Shift+Tab press goes forward: "noctalia msg window-switcher hold" // Left-hand WASD moving Mod+Ctrl+A { move-column-left-or-to-monitor-left; } diff --git a/.config/noctalia/widgets.toml b/.config/noctalia/widgets.toml index e0a3952..235e7d8 100644 --- a/.config/noctalia/widgets.toml +++ b/.config/noctalia/widgets.toml @@ -2,3 +2,8 @@ format = "{:%H:%M:%S %a %d.%m}" vertical_format = "{:%H\n%M\n%S}" tooltip_format = "{:%A, %d %B %Y}" + +# named workspaces show their name ("wh" for whatsapp), unnamed ones their index +[widget.workspaces] +label_source = "name" +max_label_chars = 2