Format issue with Hammerspoon

This commit is contained in:
Howard Abrams 2026-09-17 17:07:57 -07:00
parent aaf9533c56
commit 3d57252d02

View file

@ -2,7 +2,7 @@
#+author: Howard X. Abrams
#+date: 2025-11-24
#+filetags: emacs hamacs
#+lastmod: [2026-08-12 Wed]
#+lastmod: [2026-09-11 Fri]
A literate programming file for configuring Hammerspoon.
@ -71,25 +71,29 @@ To create specific key bindings for starting applications, I can:
----------------------------------------------------------------------
-- Launcher replaces iCanHazShortcuts
hs.hotkey.bind({"alt", "ctrl", "shift"}, "T", function()
hs.application.launchOrFocus("iTerm")
end)
hs.hotkey.bind({"alt", "ctrl", "shift"}, "S", function()
hs.application.launchOrFocus("Slack")
end)
hs.hotkey.bind({"alt", "ctrl", "shift"}, "F", function()
hs.application.launchOrFocus("Vivaldi")
hs.application.launchOrFocus("Firefox")
end)
hs.hotkey.bind({"alt", "ctrl", "shift"}, "C", function()
-- hs.osascript.applescriptFromFile("~/bin/chrome.scr")
hs.execute("~/bin/chrome.scr")
hs.application.launchOrFocus("Google Chrome")
-- hs.execute("~/bin/chrome.scr")
end)
hs.hotkey.bind({"alt", "ctrl", "shift"}, "G", function()
hs.application.launchOrFocus("Gmail")
end)
hs.hotkey.bind({"alt", "ctrl", "shift"}, "J", function()
hs.application.launchOrFocus("JIRA")
end)
hs.hotkey.bind({"alt", "ctrl", "shift"}, "B", function()
hs.application.launchOrFocus("Microsoft Outlook")
hs.application.launchOrFocus("Google Calendar")
end)
hs.hotkey.bind({"alt", "ctrl", "shift"}, "Z", function()
@ -100,12 +104,16 @@ To create specific key bindings for starting applications, I can:
hs.application.launchOrFocus("KeepassXC")
end)
hs.hotkey.bind({"alt", "ctrl", "shift"}, "G", function()
hs.application.launchOrFocus("Ghostty")
hs.hotkey.bind({"alt", "ctrl", "shift"}, "V", function()
hs.application.launchOrFocus("VLC")
end)
hs.hotkey.bind({"alt", "ctrl", "shift"}, "W", function()
hs.application.launchOrFocus("VLC")
hs.application.launchOrFocus("Mail")
end)
hs.hotkey.bind({"alt", "ctrl", "shift"}, "T", function()
hs.application.launchOrFocus("iTerm")
end)
hs.hotkey.bind({"alt", "ctrl", "shift"}, "E", function()
@ -132,6 +140,7 @@ To create specific key bindings for starting applications, I can:
hs.execute("/opt/homebrew/bin/emacsclient -s work -e '(ready-player-toggle-play-stop)'")
end)
#+END_SRC
#+END_SRC
* Zoom
/Spoons/ are library extensions to Hammerspoon: usally small Lua scripts, like =init.lua=, stored in the =Spoons= subdirectory. Installable from a =git clone=, typically. To use the Zoom spoon, clone it: