-
Notifications
You must be signed in to change notification settings - Fork 589
Sample Configurations
Jason Rudolph edited this page Jun 24, 2017
·
104 revisions
Please feel free to add a link here to your Hammerspoon configuration (i.e. init.lua) if you want to share it with the world.
- new-filet-o-fish -- Mac Improvemen
- digitalbase init.lua -- Config for 34inch display. Focus/Launch apps with shortkeys, auto layout/tile for coding and comms, shortcuts to resize apps
- Awesome-hammerspoon, as advertised. —- Highly modal-based, vim-styled key bindings, provides functionality like desktop widgets, window management, application launcher, timer indicator, dictionary translation, cheatsheets... etc.
- miro's window management -- To move windows in halves and corners using only arrows (no use of strange letters), magic and very intuitive!
-
CommandPost -- Adds lots of additional shortcuts and features to Apple's Final Cut Pro. Well documented, and makes use of almost every Hammerspoon extension (i.e AppleScript, GUI Scripting,
hs.chooser
, Pasteboard History, etc). - rtoshiro's init.lua -- Well documented. Some useful shortcuts to resize and position windows. Custom layouts for each application.
- victorso's Jumpcut replacement -- Clipboard manager with direct paste option.
- ztomer's Configuration -- Keyboard based move/ resize + Pomodoro timer.
- cmsj's init.lua
- asmagill's configuration -- undocumented and may invoke in-progress or not currently working code, but if you can use anything in it, enjoy!
- heptal's configuration -- location-based redshift, imgur uploader, window movement/resizing with undo
- marksantcroos's configuration -- near real-time view of my $HOME/.hammerspoon!
- auser's configuration
- mgee's configuration -- Uses profiles which are bound to screen configurations.
- af's configuration
- BrianGilbert's configuration -- well documented, mainly window management things.
- andrewhampton's configuration -- Window management and weather/gmail menubar items
- Krillere's init.lua (Window resizing)
- Safari Tab switch (CMD #), like Chrome
- gwww's init.lua -- Has module to use Karabiner-Elements
- TwoLeaves' configuration -- Supports changing Spaces.
- Songchenwen's configuration -- Supports Undo.
- exark's configuration - Basic window management and shortcuts. Readable and hopefully well-documented.
- oskarols's configuration - Extended app launcher that cycles between app windows and saves mouse positions. Fullscreen-hotkey that toggles between fullscreen and previous state. Create a grid-on the fly and resize/move windows using your keyboard.
-
STRML's configuration - Basic window movement using
hjkl
keys, window resizing with -=[], saved layouts, Slack tab switching override (ctrl-tab is back!), saved layout for 4k screen. - jwkvam's configuration - Draws a red border around the active window.
- pstadler's configuration - Fast spaces switching, resize and move windows, focus windows, reconnect to current wifi network, hotkey triggered caffeinate menu, enhanced battery status notifications
-
zzamboni's configuration - Near-live contents of my
~/.hammerspoon
directory. Includes window management, audio control, clipboard management, and various other things as I add them. - szymon_k's configuration - huge config including one-of-a-kind functions like automatic launch/cycle/create-new-window for multiple apps (smartLaunchOrFocus), moving windows between spaces (moveToSpace), ios-like dot indicators for spaces at the bottom of the screen (spacesDots), and more crazy stuff.
- Oh-my-Hammerspoon! - early work on a generic framework for Hammerspoon configuration that provides a useful out-of-the-box configuration and allows loading and configuration of "plugins". Draws a lot of code and ideas from some of the other configurations in this page.
- tdlm's pastebin.lua - CTRL+ALT+CMD+P for pasting text to pastebin API and getting a URL copied to your clipboard on success. Requires API keys.
- tdlm's url_shortener.lua - CTRL+ALT+CMD+S for pasting URL bit.ly API and getting a URL copied to your clipboard on success. Requires API key.
- tdlm's github_pull_requests.lua - Lists Github Pull Requests in menu bar with a simple number indication. Requires API key and filling out the GITHUB_API_USER, GITHUB_API_TOKEN and GITHUB_REPOS fields.
- Teun's configs - Google Authenticator tokens at a keystroke, making use of OSX Keychain, Dutch TV guide in a menu
- Dharma Poudel's configs - Cheatsheet copycat, battery configurations, window management and many more random stuffs.
- j-martin's config - Combination of hyper-key mapping for applications and window management.
- scottcs's config - timers, cheatsheet, notational velocity, scratchpad, weather, and more.
- spacehammer - simple config inspired by Spacemacs
- dbmrq's configuration -- Awesome window management, clipboard management, Vim style modal key bindings and Readline style key bindings.
-
S1ngS1ng's init.lua
- Window management includes Set to Another Screen, Snap to 4 directions, and Free-Style Resize
-
NEW Add Windows-like reletive window cycle. Works the same as
winKey + left/right
-
NEW Add Windows-like reletive window cycle. Works the same as
- Global music control shortcut (I am using VOX for now). See vox-control.lua
-
NEW VIM-like key global binding, i.e.
Ctrl + h/j/k/l
. Works well with combination ofalt
,shift
, andcmd
. Thanks to A-Ron's help
- Window management includes Set to Another Screen, Snap to 4 directions, and Free-Style Resize
- weather menu bar app - Shows current temperature and conditions in the menu bar (based on Yahoo Weather API)
-
Launcher Mode (inspired by Karabiner) - Use
right-cmd + X
to launch Xcode,right-cmd + C
=Chrome,right-cmd + T
=Terminal, etc. - control+hjkl to arrow keys - simple configutation. just key remapping `control + hjkl' to 'arrow keys'
- raulchen's configuration: Tmux style prefix key bindings, window management, mouse key, double CMD-Q to quit app, Vim style arrow keys, and more.
- emanresusername's .hammerspoon
- dulm's config - A framework for diffrent app with diffrent key binding. In this file is emacs basic key binding.
- hyperex - pwerful hyper-key library
- foundation_remapping - implementation of TN2450: Remapping Keys in Sierra
-
knu's modules - key chord implementation (
SimultaneousKeyPress
in Karabiner), application/window based keymap, pseudo hotkeys with extended modifiers support, emoji chooser, etc. - anoxape's .hammerspoon - cheatsheet, dock_press, ensure, layout_cache, etc.
- ControlEscape.spoon - Supercharge your control key. Tap it for escape. Hold it for control. (Optional: Remap caps lock to enjoy a physical key for control and escape right on the home row.)