aboutsummaryrefslogtreecommitdiffstats
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua16
1 files changed, 11 insertions, 5 deletions
diff --git a/init.lua b/init.lua
index dcea155..e87a1a7 100644
--- a/init.lua
+++ b/init.lua
@@ -34,9 +34,15 @@ end)
-- Temporary browser extension reload mapping
hs.hotkey.bind({}, 'f5', function()
- local position = hs.window.frontmostWindow():zoomButtonRect()
- position.x = position.x + 925
- position.y = position.y + 45
-
- hs.eventtap.leftClick(position)
+ hs.eventtap.keyStroke({'ctrl', 'option'}, 'u')
+ hs.timer.doAfter(0.5, function()
+ hs.eventtap.keyStroke({}, 'r')
+ end)
+
+ hs.timer.doAfter(10, function()
+ hs.eventtap.keyStroke({'ctrl', 'option'}, 'o')
+ hs.timer.doAfter(0.5, function()
+ hs.eventtap.keyStroke({}, '0')
+ end)
+ end)
end)