mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 11:32:42 +00:00
chore(config): adjust workspace bindings and add persistent workspaces for dual monitors
This commit is contained in:
1 parent
cc29237c0c
commit
c0f611e1bd
5 files changed
+271
-25
No files matched your search
@@ -28,11 +28,19 @@ require("default.hypr.toggles")
|
||||
-- Add any other personal Hyprland configuration below.
|
||||
-- o.window("qemu", { workspace = "5" })
|
||||
|
||||
-- Pin workspaces to monitors. Matched on EDID description for the external
|
||||
-- display so it survives landing on a different DP connector after re-docking.
|
||||
hl.workspace_rule({ workspace = "3", monitor = "desc:Apple Computer Inc StudioDisplay 0x984262A7" })
|
||||
hl.workspace_rule({ workspace = "4", monitor = "eDP-1" })
|
||||
hl.workspace_rule({ workspace = "5", monitor = "eDP-1" })
|
||||
-- Pin workspaces to monitors: 1-4 on the Studio Display, 5-8 on the laptop
|
||||
-- panel; 1 and 5 are what each shows on connect. Persistent so empty ones
|
||||
-- stay on their monitor (the bar's workspace dots list them per monitor).
|
||||
-- Matched on EDID description for the external display so it survives
|
||||
-- landing on a different DP connector after re-docking.
|
||||
for id = 1, 8 do
|
||||
hl.workspace_rule({
|
||||
workspace = tostring(id),
|
||||
monitor = id <= 4 and "desc:Apple Computer Inc StudioDisplay 0x984262A7" or "eDP-1",
|
||||
default = id == 1 or id == 5,
|
||||
persistent = true,
|
||||
})
|
||||
end
|
||||
|
||||
-- Always open these apps on a fixed workspace and follow them there. Classes
|
||||
-- come from `hyprctl clients` -- the desktop files' StartupWMClass hints
|
||||
|
||||
Reference in new issue
Block a user