diff options
| -rw-r--r-- | hypr/dashboard.lua | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/hypr/dashboard.lua b/hypr/dashboard.lua index 1902677..9b03e81 100644 --- a/hypr/dashboard.lua +++ b/hypr/dashboard.lua @@ -10,10 +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. +-- Pin the workspace to the primary monitor. THIS DOES NOT WORK: special +-- workspaces ignore a workspace_rule's `monitor` and open on whichever monitor +-- has focus (verified 2026-09-18 on 0.56.2; upstream hyprwm/Hyprland#7990 and +-- #5570, both closed in the issues-to-discussions migration, not fixed). The +-- rule registers and `hyprctl workspacerules` reports it enabled, which is +-- what makes it look like it works. +-- +-- Kept so the intent is recorded and the line is ready if upstream fixes it. +-- Until then the procedure is manual: focus DP-1 before SUPER+S. 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 is cropped, and +-- the window STAYS on DP-3 once opened there, so the next toggle is cropped +-- too until it is moved back. -- -- `hl.workspace_rule` takes `workspace`, not `match`, and unlike -- `hl.window_rule` it has no `name` field; both were checked against the @@ -68,4 +77,7 @@ hl.window_rule({ -- Literal "SUPER", not hl.mainMod: mainMod is a file-local in -- keybindings.lua (`local mainMod = "SUPER"`), not exported on hl, so -- hl.mainMod is nil here. +-- +-- Focus DP-1 before pressing this. The workspace rule above cannot do it, +-- and the dashboard opens on whichever monitor has focus. hl.bind("SUPER + s", hl.dsp.workspace.toggle_special("dash")) |
