Skip to content

Instantly share code, notes, and snippets.

@kiryph
kiryph / hammerspoon-init.lua
Last active January 27, 2022 16:21
Key chords for essential shape & line styles in Inkscape using Karabiner & Hammerspoon on macOS (inspired by Gilles Castel 2019)
-- Add this to your ~/.hammerspoon/init.lua
-- based on https://castel.dev/post/lecture-notes-2/ and
-- https://github.com/gillescastel/inkscape-shortcut-manager
-- Make cli command `hs` available:
-- After an update of hammerspoon run once following two commmands
-- hs.ipc.cliUninstall(); hs.ipc.cliInstall()
require("hs.ipc")
local function intersect(m,n)