From 183b0b43f135aee9b4093983255d2bc0cdf98b4a Mon Sep 17 00:00:00 2001 From: TheGeneralist <180094941+thegeneralist01@users.noreply.github.com> Date: Tue, 18 Aug 2026 17:27:43 +0200 Subject: [PATCH] karabiner: add Hyper+M/Shift+Hyper+M for Mail, restructure Hyper+T/Shift+Hyper+T for Todoist - Hyper+M: opens or focuses native Mail.app - Shift+Hyper+M: opens Gmail in Helium (floating window) - Hyper+T: opens or focuses native Todoist.app - Shift+Hyper+T: opens Todoist web (Today view) in Helium --- modules/darwin/karabiner.nix | 66 +++++++++++++++++++++++++++++++++--- 1 file changed, 62 insertions(+), 4 deletions(-) diff --git a/modules/darwin/karabiner.nix b/modules/darwin/karabiner.nix index 565aef1..cabad03 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" @@ -455,7 +456,7 @@ let ]; } { - description = "Hyper+T opens Todoist's Today"; + description = "Hyper+T opens or focuses native Todoist app"; manipulators = [ { from = { @@ -464,6 +465,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; @@ -663,7 +683,7 @@ let from = { key_code = "8"; modifiers = { - mandatory = hyperModifiers ++ [ "right_shift" ]; + mandatory = hyperModifiers ++ [ "left_shift" ]; }; }; to = [ @@ -675,6 +695,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"; + } + ]; + } ]; };