aboutsummaryrefslogtreecommitdiffstats
path: root/hypr/dashboard.lua
diff options
context:
space:
mode:
Diffstat (limited to 'hypr/dashboard.lua')
-rw-r--r--hypr/dashboard.lua13
1 files changed, 13 insertions, 0 deletions
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 '<name>'".
+hl.workspace_rule({
+ workspace = WS,
+ monitor = "DP-1",
+})
+
hl.window_rule({
name = "dash-workspace",
match = { class = "conky-dash" },