mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 11:46:40 +00:00
576d03a17ad4c06b6e41c0a065238a6bacdaa723
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.
Description
My personals dotfiles with any quirks, oddities, bugs, and man-eating errors I live with on a daily basis.
Languages
CSS
95.6%
Shell
1.9%
Ruby
1%
Lua
0.9%
JavaScript
0.4%
Other
0.1%