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.
Displays the current DNS server settings in the menubar (useful in conjunction with sdns)
A script to delete .bash-history
and .zsh-history
files.
Cmd-Alt-Ctrl-d
: delete the files
Displays two dots in the top-right of the menubar:
- Firewall state: red for off, green for on
- Firewall stealth mode: red for off, green for on
Checks the status every two minutes
A script to automatically reload the Hammerspoon configuration whenever a file in the .hammerspoon
dir changes
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
Cmd-Alt-Ctrl-x
: increase system volumeCmd-Alt-Ctrl-z
: decrease system volumeCmd-Alt-Ctrl-Space
: mute system volume
Shift-Alt-D, 1
: halfscreen-leftShift-Alt-D, 2
: halfscreen-rightShift-Alt-D, 3
: threequarters-leftShift-Alt-D, 0
: fullscreen
Cmd-Alt-Ctrl-l
: lock the computer