Commit Graph

21 Commits

Author SHA1 Message Date
Jim Myhrberg
fc4ebfd5fd fix(hammerspoon/misc): change kill keybinding to not conflict with window management 2024-07-15 09:44:06 +01:00
Jim Myhrberg
576d03a17a feat(hammerspoon/misc): add helper to easily trigger killall Dock
When waking macOS from sleep with multiple external monitors, it does
not correctly display the wallpaper on all screens, and can sometimes
get confused about window placement boundaries. The fix is to simply
restart the Dock process which handles these things.

This simply adds a cmd+ctrl+alt+k keybinding to trigger this via
Hammerspoon. This is particularly useful in the rare occasion you wake a
laptop without external displays which were disconnected when it was
asleep, as it sometimes gets confused to the point it thinks there are
external displays, and does not consider the internal display as part of
the usable desktop space, meaning there's no way to open a terminal
window to execute `killall Dock`. While this VERY rare, it does still
happen, which more than justifies the few lines of lua here.
2024-07-15 09:27:20 +01:00
df56386d7a feat(hammerspoon): increase size of rounded corners drawn on screen 2023-11-20 11:11:56 +00:00
047d11653b refactor(hammerspoon): improve URL handling setup, enabling host-specific setup 2023-10-28 17:04:23 +01:00
407e02895d feat(hammerspoon): setup URL handling to open different sites in different browsers 2023-10-24 13:59:53 +01:00
9490cabd3d chore(hammerspoon): format init.lua with language server 2023-04-23 16:30:32 +01:00
60e03a5f3c Remove PushToTalk Hammerspoon Spoon
I didn't end up using it much in the end.
2020-07-04 13:21:47 +01:00
2ff0508f13 Update PushToTalk spoon to check list of apps when starting
These changes have been submitted as a PR against the main Spoons
repository here: https://github.com/Hammerspoon/Spoons/pull/169
2020-05-06 20:40:19 +01:00
55f96f74ca Add PushToTalk Spoon to Hammerspoon config 2020-05-06 20:39:48 +01:00
4eddfdf6ac Extract host specific hammerspoon config to separate files 2018-04-29 16:27:55 +01:00
556960a588 Configure application hotkeys based on hostname 2018-04-24 11:35:33 +01:00
e30c612e59 Add env module 2018-04-24 11:35:11 +01:00
74052ce53c Ensure Emacs can be launched correctly 2018-04-24 00:02:09 +01:00
778c91da36 Change cmd+ctrl+b to toggle Sequel Pro 2018-04-23 23:51:00 +01:00
a1f616e01e Toggle applications via global hotkeys in Hammerspoon 2018-04-23 23:41:19 +01:00
3f5ff6352d Add spoon to luacheck globals 2018-04-01 14:04:35 +01:00
f76b5b1bea Add keybinding to toggle hammerspoon console 2017-08-05 16:04:34 +01:00
7927738951 Use single quotes instead of double quotes 2017-08-05 15:58:54 +01:00
7bd9f0d9f2 Major update to Hammerspoon config
- Use Spoons (installed via Makefile targets):
  - RoundedCorners
  - HeadphoneAutoPause (with AutoResume patch)
- Move windows management into separate file
2017-08-05 13:44:00 +01:00
1acf58b4c5 Update hammerspoon init.lua config 2017-08-05 01:49:20 +01:00
67d265a80f Add basic hammerspoon config 2017-08-04 20:57:57 +01:00