From ccf7329493788130341c5a6f8223448dc1bb2286 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 17 Sep 2026 09:44:15 +0200 Subject: feat: pin the dashboard's workspace to DP-1 The conky surface is a fixed 2560x1080, because Hyprland's fullscreen rule resizes the window but not the drawing surface, so on the 1920-wide DP-3 the dashboard would be cropped. A workspace rule keeps it on the primary monitor. hl.workspace_rule takes `workspace`, not `match`, and has no `name` field, unlike hl.window_rule. Both were checked against the runtime, which rejects an unknown field with "unknown field ''", and hyprctl workspacerules confirms the rule registers with monitor: DP-1. NOT fully verified: whether it holds when the toggle is pressed while DP-3 has focus. One observation suggested the dashboard still followed focus, but it was taken before the reload had applied the rule, and focus could not afterwards be moved to DP-3 without a window or the pointer on it. Every toggle since the reload has opened on DP-1. Worth confirming after a fresh Hyprland start. Co-Authored-By: Claude Opus 5 --- hypr/dashboard.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hypr/dashboard.lua b/hypr/dashboard.lua index 95ce454..1902677 100644 --- a/hypr/dashboard.lua +++ b/hypr/dashboard.lua @@ -10,6 +10,19 @@ -- btop scratchpad. local WS = "special:dash" +-- Pin the workspace itself to the primary monitor, so the dashboard always +-- opens on DP-1 rather than wherever focus happens to be. The conky surface is +-- a fixed 2560x1080 (Hyprland's fullscreen rule resizes the window but not the +-- drawing surface), so on the 1920-wide DP-3 it would be cropped. +-- +-- `hl.workspace_rule` takes `workspace`, not `match`, and unlike +-- `hl.window_rule` it has no `name` field; both were checked against the +-- runtime, which rejects an unknown field with "unknown field ''". +hl.workspace_rule({ + workspace = WS, + monitor = "DP-1", +}) + hl.window_rule({ name = "dash-workspace", match = { class = "conky-dash" }, -- cgit v1.2.3