1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-10-09 12:55:25 +02:00

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
This commit is contained in:
TheGeneralist 2026-08-18 17:27:43 +02:00
parent ff7e33c0af
commit 183b0b43f1

View file

@ -4,7 +4,7 @@ let
"left_command" "left_command"
"left_control" "left_control"
"left_option" "left_option"
"left_shift" "right_shift"
]; ];
openGhostty = "open -na Ghostty.app"; openGhostty = "open -na Ghostty.app";
@ -20,6 +20,7 @@ let
openHeliumTelegram = "open -na Helium.app --args https://web.telegram.org/k/"; openHeliumTelegram = "open -na Helium.app --args https://web.telegram.org/k/";
openHeliumTodoist = "open -na Helium.app --args https://app.todoist.com/app/today"; openHeliumTodoist = "open -na Helium.app --args https://app.todoist.com/app/today";
openHeliumDiscord = "open -na Helium.app --args https://discord.com/channels/@me"; openHeliumDiscord = "open -na Helium.app --args https://discord.com/channels/@me";
openHeliumGmail = "open -na Helium.app --args https://gmail.com/";
numbers = [ numbers = [
"1" "1"
@ -328,7 +329,7 @@ let
}; };
to = [ to = [
{ {
key_code = "left_shift"; key_code = "right_shift";
modifiers = [ modifiers = [
"left_option" "left_option"
"left_command" "left_command"
@ -455,7 +456,7 @@ let
]; ];
} }
{ {
description = "Hyper+T opens Todoist's Today"; description = "Hyper+T opens or focuses native Todoist app";
manipulators = [ manipulators = [
{ {
from = { from = {
@ -464,6 +465,25 @@ let
mandatory = hyperModifiers; 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 = [ to = [
{ {
shell_command = openHeliumTodoist; shell_command = openHeliumTodoist;
@ -663,7 +683,7 @@ let
from = { from = {
key_code = "8"; key_code = "8";
modifiers = { modifiers = {
mandatory = hyperModifiers ++ [ "right_shift" ]; mandatory = hyperModifiers ++ [ "left_shift" ];
}; };
}; };
to = [ 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";
}
];
}
]; ];
}; };