this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 14 lines 583 B view raw
1CMD_Q_SAFARI = hs.hotkey.new({ "cmd" }, "q", function() 2 local app = hs.application.frontmostApplication() 3 local appName = app:name() 4 if app:name() == "Safari" then 5 local button, text = hs.dialog.blockAlert("Are you sure you want to quit Safari?", "Safari has open windows or tabs.", "Quit", "Cancel") 6 if button == "Quit" then 7 app:kill() -- This command will close Safari if "Quit" is selected 8 end 9 else 10 CMD_Q_SAFARI:disable() 11 hs.eventtap.keyStroke({ "cmd" }, "Q") 12 CMD_Q_SAFARI:enable() 13 end 14end):enable()