A suite of Lua scripts for Hammerspoon that provide functionality and keyboard shortcuts for actions I commonly use.
- Install Hammerspoon.
- Clone this repository into your
~/.hammerspoon
directory. - Open Hammerspoon or reload your config from the Hammerspoon menubar menu.
This set of scripts provides the following functionality via Hammerspoon.
Alt-Ctrl-Space
: play/pauseAlt-Ctrl-x
: next trackAlt-Ctrl-z
: previous trackAlt-Ctrl-c
: display current track
Cmd-Alt-Ctrl-m
: find the cursor on the screen
- Displays a universal time (UTC) clock in the menubar
- Displays the current DNS server settings in the menubar (useful in conjunction with sdns)
Shift-Alt-D, 1
: halfscreen-leftShift-Alt-D, 2
: halfscreen-rightShift-Alt-D, 3
: threequarters-leftShift-Alt-D, 0
: fullscreen
- A script to automatically reload the Hammerspoon configuration
whenever a file in the
.hammerspoon
dir changes
Cmd-Alt-Ctrl-l
: lock the computer