Skip to content

Instantly share code, notes, and snippets.

@dreikanter
Last active December 11, 2021 20:41
Show Gist options
  • Save dreikanter/686d01fb0737f9fd0bd99631ad5c3d21 to your computer and use it in GitHub Desktop.
Save dreikanter/686d01fb0737f9fd0bd99631ad5c3d21 to your computer and use it in GitHub Desktop.
~/.hammerspoon/init.lua
-- hs.hotkey.bind({"cmd", "shift"}, "1", function()
-- hs.keycodes.setLayout("English - Ilya Birman Typography")
-- end)
-- hs.hotkey.bind({"cmd", "shift"}, "2", function()
-- hs.keycodes.setLayout("Russian - Ilya Birman Typography")
-- end)
hs.hotkey.bind({"cmd", "alt"}, "1", function()
hs.keycodes.setLayout("English - Ilya Birman Typography")
end)
hs.hotkey.bind({"cmd", "alt"}, "2", function()
hs.keycodes.setLayout("Russian - Ilya Birman Typography")
end)
hs.hotkey.bind({"ctrl", "shift"}, "n", function()
hs.execute("ruby ~/.dotfiles/scripts/create_note.rb")
end)
hs.hotkey.bind({"ctrl", "shift"}, "l", function()
hs.execute("ruby ~/.dotfiles/scripts/open_last_note.rb")
end)
hyper = {"ctrl", "alt", "cmd"}
-- require('watcher')
-- require('position')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment