mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 12:06:41 +00:00
- Use Spoons (installed via Makefile targets): - RoundedCorners - HeadphoneAutoPause (with AutoResume patch) - Move windows management into separate file
39 lines
1.2 KiB
Lua
39 lines
1.2 KiB
Lua
-- luacheck: read_globals hs
|
|
|
|
-- Reload config hotkey
|
|
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "R", hs.reload)
|
|
|
|
--------------------------------------------------------------------------------
|
|
-- Set Hammerspoon options
|
|
--------------------------------------------------------------------------------
|
|
|
|
hs.autoLaunch(true)
|
|
hs.consoleOnTop(true)
|
|
hs.dockIcon(false)
|
|
hs.menuIcon(true)
|
|
hs.console.alpha(0.90)
|
|
hs.console.behaviorAsLabels { 'moveToActiveSpace' }
|
|
|
|
--------------------------------------------------------------------------------
|
|
-- Require modules
|
|
--------------------------------------------------------------------------------
|
|
|
|
require('window_management'):init()
|
|
|
|
--------------------------------------------------------------------------------
|
|
-- Load Spoons
|
|
--------------------------------------------------------------------------------
|
|
|
|
-- Draw pretty rounded corners on all screens.
|
|
hs.loadSpoon('RoundedCorners')
|
|
spoon.RoundedCorners:start()
|
|
|
|
-- Automatically pause music when headphones are unplugged.
|
|
hs.loadSpoon('HeadphoneAutoPause')
|
|
spoon.HeadphoneAutoPause.autoResume = false
|
|
spoon.HeadphoneAutoPause:start()
|
|
|
|
|
|
-- the end
|
|
hs.alert.show("Hammerspoon loaded")
|