automation with HammerSpoon
problem 1
laptop on full volume in public
problem 2
window management
problem 3
copy pasting mutiple texts
problem 4
keeping your mac screen awake
problem n
add your problem
What is Hammerspoon
-
A OS X automation tool which let's you control OS features using scripts written in lua.
- It exposes Mac OS API's in a progamming language.
- It's code, you can save it to VCS and reuse.
- You can install spoons.
how it helped
-
I wrote some scripts
- control volumes on your wifi change
- defining shortcuts
- installing interesting spoons like caffeine,clipboard
Spoons
Spoons are pre-made plugins for Hammerspoon.
- caffine
- clipboard history
Window Management
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "M", function()
local win = hs.window.focusedWindow()
local f = win:frame()
local screen = win:screen()
local max = screen:frame()
f.x = max.x
f.y = max.y
f.w = max.w
f.h = max.h
win:setFrame(f)
end)
demo time
Keep automating
