From fea1e8bd998d597fa2af9222fdc69083c21be1b0 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 20 Nov 2023 11:10:34 +0000 Subject: [PATCH] feat(hammerspoon): tweak global hotkeys and URL handlers --- hammerspoon/hosts/noct.lua | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/hammerspoon/hosts/noct.lua b/hammerspoon/hosts/noct.lua index 97003ee..7bc0cec 100644 --- a/hammerspoon/hosts/noct.lua +++ b/hammerspoon/hosts/noct.lua @@ -10,13 +10,13 @@ local function init_hotkeys() apptoggle:bind({ 'cmd', 'alt', 'ctrl' }, 'A', { 'Activity Monitor' }) apptoggle:bind({ 'cmd', 'ctrl' }, '2', { 'ChatGPT' }) apptoggle:bind({ 'cmd', 'ctrl' }, '4', { 'FastGPT' }) - apptoggle:bind({ 'cmd', 'ctrl' }, '5', { 'Microsoft Edge' }) apptoggle:bind({ 'cmd', 'ctrl' }, 'A', { 'Messages' }) apptoggle:bind({ 'cmd', 'ctrl' }, 'B', { 'TablePlus' }, { 'Lens' }) apptoggle:bind({ 'cmd', 'ctrl' }, 'C', { 'Calendar' }) - apptoggle:bind({ 'cmd', 'ctrl' }, 'D', { 'Mimestream' }, { 'Mailplane' }) + apptoggle:bind({ 'cmd', 'ctrl' }, 'D', { 'Mailplane' }, { 'Mimestream' }) apptoggle:bind({ 'cmd', 'ctrl' }, 'E', { 'Emacs', '/Applications/Emacs.app' }) - apptoggle:bind({ 'cmd', 'ctrl' }, 'F', { 'Element Nightly' }) + apptoggle:bind({ 'cmd', 'ctrl' }, 'F', { 'Element' }, { 'Element Nightly' }) + apptoggle:bind({ 'cmd', 'ctrl' }, 'G', { 'Microsoft Edge' }) apptoggle:bind({ 'cmd', 'ctrl' }, 'S', { 'Music' }) apptoggle:bind({ 'cmd', 'ctrl' }, 'T', { 'Discord PTB' }) apptoggle:bind({ 'cmd', 'ctrl' }, 'X', { 'Notion' }, { 'Obsidian' }) @@ -43,8 +43,11 @@ local function init_url_handler() uh.default_handler = uh.browsers.safari uh.url_patterns = { { - { "%://github.com/krystal/", "%://%.github.com/krystal/" }, - uh.browsers.edge, nil, { "Slack" } + { + "%://github.com/krystal/", + "%://%.github.com/krystal/" + }, + uh.browsers.edge, nil, { "Slack", "Code", "Emacs" } }, { { "%://meet.google.com/" },