/hammerspoon-automation

My hammerspoon automation scripts 😎🔥

Primary LanguageLua

Hammerspoon Automation

This is my hammerspoon automation commands. The following commands are for window management and common app launching. I will be adding more in the future.

Install hammerspoon

Please refer to this link.

Window arranging commands

Full Screen
Key CombinationScreen Size
option + ctrl + Left Small
command + option + Left Medium
command + ctrl + Left Large
option + ctrl + Right Small
command + option + Right Medium
command + ctrl + Right Large
command + ctrl + space Middle Medium
option + ctrl + space Middle Small
command + option + ctrl + space
option + ctrl + Top Small
command + option + Top Medium
command + ctrl + Top Large
option + ctrl + Bottom Small
command + option + Bottom Medium
command + ctrl + Bottom Large
command + option + space Middle Apple Style

Desktop spaces arranging commands

Key CombinationMovement
command + option + shift + Move to left desktop
command + option + shift + Move to right desktop

Window movement commands

Key CombinationMovement
command + ctrl + shift + Move to left screen
command + ctrl + shift + Move to right screen
command + ctrl + shift + Move to top screen
command + ctrl + shift + Move to bottom screen

Quick layout commands

Key CombinationModeApps Opened
command + option + 1 Coding Mode TextMate / Terminal / Safari
command + option + 2 iOS Development Mode Xcode / Safari
command + option + 3 Communication Mode Slack / Mail / Safari / Finder
command + option + 4 Search Mode Safari / Notion
command + option + 5 Research Mode Terminal / Safari / Notion / Mendeley Desktop
command + option + 6 Thesis Writing Mode TextMate / Terminal / Safari / Mendeley Desktop
command + option + 7 Entertainment Mode Safari

Quick launch commands

Key CombinationApplication
command + option + u Mail
command + option + i Todoist
command + option + o Calender
command + option + j Terminal
command + option + p Xcode
command + option + k Safari
command + option + l Finder
command + option + m Music

References