Browse Source

feat: update aerospace different monitors

master
Ein Verne 1 month ago
parent
commit
df6c89149e
  1. 8
      aerospace/aerospace.toml
  2. 11
      hammerspoon/init.lua

8
aerospace/aerospace.toml

@ -145,10 +145,10 @@ if.during-aerospace-startup = false
run = ['layout floating']
[workspace-to-monitor-force-assignment]
5 = 'BenQ EW2880U'
6 = 'BenQ EW2880U'
7 = 'BenQ EW2880U'
8 = 'BenQ EW2880U'
5 = ['BenQ EW2880U', 'SA240Y', 'main']
6 = ['BenQ EW2880U', 'SA240Y', 'main']
7 = ['BenQ EW2880U', 'SA240Y', 'main']
8 = ['BenQ EW2880U', 'SA240Y', 'main']
# Possible values: (qwerty|dvorak|colemak)
# See https://nikitabobko.github.io/AeroSpace/guide#key-mapping

11
hammerspoon/init.lua

@ -50,9 +50,9 @@ function moveWindowToDisplay(d)
end
end
-- hs.hotkey.bind(hyper, "m", moveWindowToDisplay(1))
-- hs.hotkey.bind(hyper, "8", moveWindowToDisplay(2))
-- hs.hotkey.bind(hyper, "9", moveWindowToDisplay(3))
--hs.hotkey.bind(hyper, "m", moveWindowToDisplay(1))
--hs.hotkey.bind(hyper, "8", moveWindowToDisplay(2))
--hs.hotkey.bind(hyper, "9", moveWindowToDisplay(3))
function movieWinBetweenMonitors(d)
return function()
@ -213,9 +213,14 @@ else
end
end
function executeAeroSpaceCommand(command)
return hs.execute("/opt/homebrew/bin/aerospace " .. command)
end
function reloadConfig()
hs.reload()
--hs.execute("/bin/launchctl kickstart -k \"gui/${UID}/homebrew.mxcl.yabai\"")
executeAeroSpaceCommand("reload-config")
end
hsreload_keys = { hyper, "R" }

Loading…
Cancel
Save