From fea331158915713d980bafde6c38a6954d5c233b Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 15 Sep 2026 17:04:07 +0200 Subject: feat: move the desktop bar to DP-1, and add the mail module The two bars were both on DP-3, which put the workspaces and the window list on a rotated 1080px screen while 2560px sat unused next to it. Status stays on DP-3 alone; the desktop itself moved to DP-1, where the window list has room. This replaces the stock bar rather than sitting beside it, so hyprland's autostart now launches this config instead of a bare waybar. ~/.config/waybar is left on disk, but nothing reads it. Mail comes over from the stock bar as the same notmuch watcher, minus the glyph: the envelope is a CSS background and the unread count stays text, because the count is the content rather than decoration, exactly like the clock. Its format carries a trailing space so the pill survives the empty state, since the watcher emits an empty text when nothing is unread and waybar draws no widget at all for a custom module whose output is empty. Co-Authored-By: Claude Opus 5 --- config.jsonc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'config.jsonc') diff --git a/config.jsonc b/config.jsonc index a7c5ff9..1d94a39 100644 --- a/config.jsonc +++ b/config.jsonc @@ -1,13 +1,13 @@ -// waybar-theme-udt: two bars on DP-3. +// waybar-theme-udt: the status bar on DP-3, the desktop bar on DP-1. // Copyright (C) 2026 Danilo M. // Licensed under the GNU General Public License v2 only. // // A top-level array is how waybar takes more than one bar. Both bars are one // process reading one stylesheet, so the pills stay consistent between them. // -// DP-3 is rotated, so the bar is 1080px rather than 1920: one bar holding -// everything was too crowded at that width. Status lives on top, the desktop -// (workspaces and open windows) along the bottom. +// DP-3 is rotated and only 1080px wide, which is why it carries status alone. +// The desktop itself, the workspaces and the window list, sits on DP-1 where +// there are 2560px to spread them across. // // One file per module, included explicitly: wildcard `include` has been broken // since waybar v0.14.0, so every module file has to be listed by name. @@ -18,6 +18,7 @@ "$HOME/.config/waybar-udt/modules/custom/vmdot.jsonc", "$HOME/.config/waybar-udt/modules/image/launcher.jsonc", "$HOME/.config/waybar-udt/modules/custom/privacy_dots.jsonc", + "$HOME/.config/waybar-udt/modules/custom/mail.jsonc", "$HOME/.config/waybar-udt/modules/image/volume.jsonc", "$HOME/.config/waybar-udt/modules/extras/tray.jsonc", "$HOME/.config/waybar-udt/modules/custom/presentation.jsonc", @@ -34,6 +35,7 @@ ], "modules-right": [ "custom/privacy_dots", + "custom/mail", "group/volume", "tray", "custom/presentation", @@ -64,8 +66,8 @@ ], "layer": "top", - "output": "DP-3", - "position": "bottom", + "output": "DP-1", + "position": "top", "height": 0, "width": 0, "margin": 0, -- cgit v1.2.3