Skip to content

Instantly share code, notes, and snippets.

View adipasquale's full-sized avatar

Adrien Di Pasquale adipasquale

View GitHub Profile
@ianjamieson
ianjamieson / init.lua
Last active April 23, 2025 23:41
Highlight macOS active windows using Hammerspoon init.lua
local highlight = nil
local function highlightWindow()
-- Clear any existing highlight
if highlight then
highlight:delete()
highlight = nil
end
-- Get the currently focused window
# This is a workaround for the rails issue described in
# https://github.com/rails/rails/issues/17368. If you use this,
# make sure you understand its code and what it does and what it
# doesn't.
#
# See below for an example.
# lib/lazy_ids.rb (i.e.)
module LazyIds
extend ActiveSupport::Concern