mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 19:32:43 +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
@@ -143,10 +143,11 @@ o.bind("SUPER + A", "Toggle scratch workspace", "omarchy-toggle-scratch scratchp
|
||||
o.bind("SUPER + CTRL + ALT + H", "Toggle Tern scratch workspace", "omarchy-toggle-scratch scratchpad")
|
||||
o.bind("SUPER + CTRL + ALT + L", "Toggle Claude scratch workspace", "omarchy-toggle-scratch claude")
|
||||
|
||||
-- Workspaces 1 to 5 on the home row of the left half: ALT to focus,
|
||||
-- ALT + SHIFT to send the window there. No Omarchy default uses ALT with a
|
||||
-- letter, so nothing is unbound.
|
||||
for index, key in ipairs({ "Q", "W", "E", "R", "T" }) do
|
||||
-- Workspaces 1 to 4 (Studio Display) on Q W E R and 5 to 8 (laptop panel) on
|
||||
-- Y U I O: ALT to focus, ALT + SHIFT to send the window there. The pinning
|
||||
-- lives in hypr/hyprland.lua, so focusing a workspace also moves to its
|
||||
-- monitor. No Omarchy default uses ALT with a letter, so nothing is unbound.
|
||||
for index, key in ipairs({ "Q", "W", "E", "R", "Y", "U", "I", "O" }) do
|
||||
local workspace = tostring(index)
|
||||
|
||||
o.bind("ALT + " .. key, "Switch to workspace " .. workspace, hl.dsp.focus({ workspace = workspace }))
|
||||
@@ -156,9 +157,6 @@ end
|
||||
hl.unbind("SUPER + O") -- was: pop window out
|
||||
hl.unbind("SUPER + SHIFT + O") -- was: Obsidian (moved to SUPER + CTRL + ALT + O)
|
||||
|
||||
o.bind("ALT + O", "Focus next monitor", hl.dsp.focus({ monitor = "+1" }))
|
||||
o.bind("ALT + SHIFT + O", "Move window to next monitor", hl.dsp.window.move({ monitor = "+1" }))
|
||||
|
||||
o.bind("ALT + SHIFT + J", "Move window to next monitor", hl.dsp.window.move({ monitor = "+1" }))
|
||||
o.bind("ALT + SHIFT + K", "Move window to previous monitor", hl.dsp.window.move({ monitor = "-1" }))
|
||||
|
||||
|
||||
Reference in new issue
Block a user