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'] run = ['layout floating']
[workspace-to-monitor-force-assignment] [workspace-to-monitor-force-assignment]
5 = 'BenQ EW2880U' 5 = ['BenQ EW2880U', 'SA240Y', 'main']
6 = 'BenQ EW2880U' 6 = ['BenQ EW2880U', 'SA240Y', 'main']
7 = 'BenQ EW2880U' 7 = ['BenQ EW2880U', 'SA240Y', 'main']
8 = 'BenQ EW2880U' 8 = ['BenQ EW2880U', 'SA240Y', 'main']
# Possible values: (qwerty|dvorak|colemak) # Possible values: (qwerty|dvorak|colemak)
# See https://nikitabobko.github.io/AeroSpace/guide#key-mapping # See https://nikitabobko.github.io/AeroSpace/guide#key-mapping

11
hammerspoon/init.lua

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

Loading…
Cancel
Save