diff --git a/modules/darwin/karabiner.nix b/modules/darwin/karabiner.nix index 565aef1..9f4bc1a 100644 --- a/modules/darwin/karabiner.nix +++ b/modules/darwin/karabiner.nix @@ -4,7 +4,7 @@ let "left_command" "left_control" "left_option" - "left_shift" + "right_shift" ]; openGhostty = "open -na Ghostty.app"; @@ -20,6 +20,7 @@ let openHeliumTelegram = "open -na Helium.app --args https://web.telegram.org/k/"; openHeliumTodoist = "open -na Helium.app --args https://app.todoist.com/app/today"; openHeliumDiscord = "open -na Helium.app --args https://discord.com/channels/@me"; + openHeliumGmail = "open -na Helium.app --args https://gmail.com/"; numbers = [ "1" @@ -328,7 +329,7 @@ let }; to = [ { - key_code = "left_shift"; + key_code = "right_shift"; modifiers = [ "left_option" "left_command" @@ -359,6 +360,25 @@ let } ]; } + { + description = "Hyper+A opens Telegram"; + manipulators = [ + { + from = { + key_code = "a"; + modifiers = { + mandatory = hyperModifiers; + }; + }; + to = [ + { + shell_command = openHeliumTelegram; + } + ]; + type = "basic"; + } + ]; + } { description = "Hyper+B opens Helium"; manipulators = [ @@ -417,7 +437,7 @@ let ]; } { - description = "Hyper+W opens Telegram"; + description = "Hyper+W opens or focuses Helium"; manipulators = [ { from = { @@ -428,7 +448,7 @@ let }; to = [ { - shell_command = openHeliumTelegram; + shell_command = "open -a Helium.app"; } ]; type = "basic"; @@ -455,7 +475,7 @@ let ]; } { - description = "Hyper+T opens Todoist's Today"; + description = "Hyper+T opens or focuses native Todoist app"; manipulators = [ { from = { @@ -464,6 +484,25 @@ let mandatory = hyperModifiers; }; }; + to = [ + { + shell_command = "open -a Todoist.app"; + } + ]; + type = "basic"; + } + ]; + } + { + description = "Shift+Hyper+T opens Todoist's Today in Helium"; + manipulators = [ + { + from = { + key_code = "t"; + modifiers = { + mandatory = hyperModifiers ++ [ "left_shift" ]; + }; + }; to = [ { shell_command = openHeliumTodoist; @@ -524,7 +563,45 @@ let ]; } { - description = "Hyper+V opens ChatGPT (incognito)"; + description = "Hyper+C opens or focuses ChatGPT app"; + manipulators = [ + { + from = { + key_code = "c"; + modifiers = { + mandatory = hyperModifiers; + }; + }; + to = [ + { + shell_command = "open -a ChatGPT.app"; + } + ]; + type = "basic"; + } + ]; + } + { + description = "Shift+Hyper+C opens ChatGPT web"; + manipulators = [ + { + from = { + key_code = "c"; + modifiers = { + mandatory = hyperModifiers ++ [ "left_shift" ]; + }; + }; + to = [ + { + shell_command = openChatGPT; + } + ]; + type = "basic"; + } + ]; + } + { + description = "Hyper+V opens or focuses Claude app"; manipulators = [ { from = { @@ -533,6 +610,44 @@ let mandatory = hyperModifiers; }; }; + to = [ + { + shell_command = "open -a Claude.app"; + } + ]; + type = "basic"; + } + ]; + } + { + description = "Shift+Hyper+V opens Claude web"; + manipulators = [ + { + from = { + key_code = "v"; + modifiers = { + mandatory = hyperModifiers ++ [ "left_shift" ]; + }; + }; + to = [ + { + shell_command = openClaude; + } + ]; + type = "basic"; + } + ]; + } + { + description = "Hyper+L opens ChatGPT web (incognito)"; + manipulators = [ + { + from = { + key_code = "l"; + modifiers = { + mandatory = hyperModifiers; + }; + }; to = [ { shell_command = openChatGPTIncognito; @@ -543,51 +658,13 @@ let ]; } { - description = "Hyper+C opens ChatGPT"; - manipulators = [ - { - from = { - key_code = "c"; - modifiers = { - mandatory = hyperModifiers; - }; - }; - to = [ - { - shell_command = openChatGPT; - } - ]; - type = "basic"; - } - ]; - } - { - description = "Hyper+L opens Claude"; + description = "Shift+Hyper+L opens Claude web (incognito)"; manipulators = [ { from = { key_code = "l"; modifiers = { - mandatory = hyperModifiers; - }; - }; - to = [ - { - shell_command = openClaude; - } - ]; - type = "basic"; - } - ]; - } - { - description = "Hyper+; opens Claude (incognito)"; - manipulators = [ - { - from = { - key_code = "semicolon"; - modifiers = { - mandatory = hyperModifiers; + mandatory = hyperModifiers ++ [ "left_shift" ]; }; }; to = [ @@ -663,7 +740,7 @@ let from = { key_code = "8"; modifiers = { - mandatory = hyperModifiers ++ [ "right_shift" ]; + mandatory = hyperModifiers ++ [ "left_shift" ]; }; }; to = [ @@ -675,6 +752,44 @@ let } ]; } + { + description = "Hyper+M opens or focuses native Mail app"; + manipulators = [ + { + from = { + key_code = "m"; + modifiers = { + mandatory = hyperModifiers; + }; + }; + to = [ + { + shell_command = "open -a Mail.app"; + } + ]; + type = "basic"; + } + ]; + } + { + description = "Shift+Hyper+M opens Gmail in Helium"; + manipulators = [ + { + from = { + key_code = "m"; + modifiers = { + mandatory = hyperModifiers ++ [ "left_shift" ]; + }; + }; + to = [ + { + shell_command = openHeliumGmail; + } + ]; + type = "basic"; + } + ]; + } ]; };