forge
Explore
Log in

Don't you dare go Hollow

Hide empty named workspaces and label them by name

Browse files at this commit

e5da62d8fd5a5d1ea62a48787370881275d5a322Ahmet Kaan GümüşParent: e40e1f4
  • feat
    • hide empty named workspaces and label them by name
Show full message
✨ feat(niri): hide empty named workspaces and label them by name

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.kdlmodified+9 -7
@@ -139,25 +139,25 @@ debug {
139 }139 }
140 140
141 workspace "code" {141 workspace "code" {
142- // hidden // pinned workspaces: not reimplemented in the custom niri build yet142+ hidden
143 }143 }
144 workspace "github" {144 workspace "github" {
145- // hidden // pinned workspaces: not reimplemented in the custom niri build yet145+ hidden
146 }146 }
147 workspace "whatsapp" {147 workspace "whatsapp" {
148- // hidden // pinned workspaces: not reimplemented in the custom niri build yet148+ hidden
149 }149 }
150 workspace "discord" {150 workspace "discord" {
151- // hidden // pinned workspaces: not reimplemented in the custom niri build yet151+ hidden
152 }152 }
153 workspace "deezer" {153 workspace "deezer" {
154- // hidden // pinned workspaces: not reimplemented in the custom niri build yet154+ hidden
155 }155 }
156 workspace "youtube" {156 workspace "youtube" {
157- // hidden // pinned workspaces: not reimplemented in the custom niri build yet157+ hidden
158 }158 }
159 workspace "mail" {159 workspace "mail" {
160- // hidden // pinned workspaces: not reimplemented in the custom niri build yet160+ hidden
161 }161 }
162 binds {162 binds {
163 Alt+T hotkey-overlay-title="Terminal: wezterm" { spawn-sh "wezterm start --always-new-process"; }163 Alt+T hotkey-overlay-title="Terminal: wezterm" { spawn-sh "wezterm start --always-new-process"; }
@@ -268,6 +268,8 @@ binds {
268 Mod+End { focus-column-last; }268 Mod+End { focus-column-last; }
269 Mod+Tab { focus-window-previous; }269 Mod+Tab { focus-window-previous; }
270 // Alt+Tab / Alt+Shift+Tab left unbound: niri's built-in recent-windows switcher (live previews)270 // Alt+Tab / Alt+Shift+Tab left unbound: niri's built-in recent-windows switcher (live previews)
271+ // Noctalia's switcher has previews too (toplevel capture in the niri fork), but its first
272+ // Alt+Shift+Tab press goes forward: "noctalia msg window-switcher hold"
271 273
272 // Left-hand WASD moving274 // Left-hand WASD moving
273 Mod+Ctrl+A { move-column-left-or-to-monitor-left; }275 Mod+Ctrl+A { move-column-left-or-to-monitor-left; }
.config/noctalia/widgets.tomlmodified+5 -0
@@ -2,3 +2,8 @@
2 format = "{:%H:%M:%S %a %d.%m}"2 format = "{:%H:%M:%S %a %d.%m}"
3 vertical_format = "{:%H\n%M\n%S}"3 vertical_format = "{:%H\n%M\n%S}"
4 tooltip_format = "{:%A, %d %B %Y}"4 tooltip_format = "{:%A, %d %B %Y}"
5+
6+# named workspaces show their name ("wh" for whatsapp), unnamed ones their index
7+[widget.workspaces]
8+label_source = "name"
9+max_label_chars = 2