diff --git a/aerospace/aerospace.toml b/aerospace/aerospace.toml index 663faa3..263f155 100644 --- a/aerospace/aerospace.toml +++ b/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 diff --git a/hammerspoon/init.lua b/hammerspoon/init.lua index 20e437c..39a62e0 100644 --- a/hammerspoon/init.lua +++ b/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" }