Skip to content

a3ammar/hammerspoon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is my Hammerspoon configuration.

I swapped my caps lock key with ctrl using OS X keyboard preferences, then used Karabiner-Elements to make caps lock (which is the ctrl physical key) key to F19 (a key that doesn't exist on my keyboard but has a keycode) then through hammerspoon I make a modal key that acts like a hyper key.

Keybinding List

Application Focus Keys

Key Description
ctrl+j Focus Google Chrome
ctrl+k Focus Emacs
ctrl+l Focus Terminal.app
ctrl+u Focus Dash
crtl+8 Set the current window to ctrl+i
ctrl+i Focus the window set by ctrl+8
ctrl+h Show window hints

Layouts Keys

Key Description
ctrl+a Set the current app to left layout (used for browing)
ctrl+s Set the current app to big window in the middle layout
ctrl+d Set the current app to right layout (used for coding)
ctrl+w Set the current app to be as tall as possible while leaving 20px of padding area
ctrl+t Set the current app to iTunes MiniPlayer layout
ctrl+f Set the current app to be 600x620px
ctrl+r Set the current app to be 600x500px
ctrl+c Move the current app to the center
ctrl+v Move the current app to horizontal center but 20% from top
ctrl+z Undo

Movement Between Displays Keys

Key Description
ctrl+1 Move to main display
ctrl+2 Move to the second display

Miscellaneous Keys

key Description
ctrl+backspace Start Screensaver

About

My hammerspoon config

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages