diff --git a/modules/darwin/karabiner.nix b/modules/darwin/karabiner.nix index 9f4bc1a..565aef1 100644 --- a/modules/darwin/karabiner.nix +++ b/modules/darwin/karabiner.nix @@ -4,7 +4,7 @@ let "left_command" "left_control" "left_option" - "right_shift" + "left_shift" ]; openGhostty = "open -na Ghostty.app"; @@ -20,7 +20,6 @@ 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" @@ -329,7 +328,7 @@ let }; to = [ { - key_code = "right_shift"; + key_code = "left_shift"; modifiers = [ "left_option" "left_command" @@ -360,25 +359,6 @@ 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 = [ @@ -437,7 +417,7 @@ let ]; } { - description = "Hyper+W opens or focuses Helium"; + description = "Hyper+W opens Telegram"; manipulators = [ { from = { @@ -448,7 +428,7 @@ let }; to = [ { - shell_command = "open -a Helium.app"; + shell_command = openHeliumTelegram; } ]; type = "basic"; @@ -475,7 +455,7 @@ let ]; } { - description = "Hyper+T opens or focuses native Todoist app"; + description = "Hyper+T opens Todoist's Today"; manipulators = [ { from = { @@ -484,25 +464,6 @@ 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; @@ -563,45 +524,7 @@ let ]; } { - 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"; + description = "Hyper+V opens ChatGPT (incognito)"; manipulators = [ { from = { @@ -610,44 +533,6 @@ 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; @@ -658,13 +543,51 @@ let ]; } { - description = "Shift+Hyper+L opens Claude web (incognito)"; + description = "Hyper+C opens ChatGPT"; + manipulators = [ + { + from = { + key_code = "c"; + modifiers = { + mandatory = hyperModifiers; + }; + }; + to = [ + { + shell_command = openChatGPT; + } + ]; + type = "basic"; + } + ]; + } + { + description = "Hyper+L opens Claude"; manipulators = [ { from = { key_code = "l"; modifiers = { - mandatory = hyperModifiers ++ [ "left_shift" ]; + mandatory = hyperModifiers; + }; + }; + to = [ + { + shell_command = openClaude; + } + ]; + type = "basic"; + } + ]; + } + { + description = "Hyper+; opens Claude (incognito)"; + manipulators = [ + { + from = { + key_code = "semicolon"; + modifiers = { + mandatory = hyperModifiers; }; }; to = [ @@ -740,7 +663,7 @@ let from = { key_code = "8"; modifiers = { - mandatory = hyperModifiers ++ [ "left_shift" ]; + mandatory = hyperModifiers ++ [ "right_shift" ]; }; }; to = [ @@ -752,44 +675,6 @@ 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"; - } - ]; - } ]; };