diff --git a/modules/darwin/karabiner.nix b/modules/darwin/karabiner.nix index eead1b4..5ae9ed1 100644 --- a/modules/darwin/karabiner.nix +++ b/modules/darwin/karabiner.nix @@ -1,17 +1,4 @@ -{ ... }: let - hyperModifiers = [ - "left_command" - "left_control" - "left_option" - "left_shift" - ]; - - openGhostty = "open -na Ghostty.app"; - openHelium = "open -na Helium.app"; - openHeliumNotifications = "open -na Helium.app --args https://x.com/i/notifications"; - openHeliumT3Chat = "open -na Helium.app --args https://t3.chat/"; - numbers = [ "1" "2" @@ -82,110 +69,6 @@ let # description = "Change numbers to symbols and vice versa"; # manipulators = manipulators; # } - { - description = "Hyperkey"; - manipulators = [ - { - from = { - key_code = "caps_lock"; - modifiers = { optional = [ "any" ]; }; - }; - to = [ - { - key_code = "left_shift"; - modifiers = [ - "left_option" - "left_command" - "left_control" - ]; - } - ]; - to_if_alone = [ - { - hold_down_milliseconds = 500; - key_code = "escape"; - } - ]; - type = "basic"; - } - ]; - } - { - description = "Hyper+Return opens Ghostty"; - manipulators = [ - { - from = { - key_code = "return_or_enter"; - modifiers = { - mandatory = hyperModifiers; - }; - }; - to = [ - { - shell_command = openGhostty; - } - ]; - type = "basic"; - } - ]; - } - { - description = "Hyper+B opens Helium"; - manipulators = [ - { - from = { - key_code = "b"; - modifiers = { - mandatory = hyperModifiers; - }; - }; - to = [ - { - shell_command = openHelium; - } - ]; - type = "basic"; - } - ]; - } - { - description = "Hyper+N opens X Notifications"; - manipulators = [ - { - from = { - key_code = "n"; - modifiers = { - mandatory = hyperModifiers; - }; - }; - to = [ - { - shell_command = openHeliumNotifications; - } - ]; - type = "basic"; - } - ]; - } - { - description = "Hyper+T opens T3 Chat"; - manipulators = [ - { - from = { - key_code = "t"; - modifiers = { - mandatory = hyperModifiers; - }; - }; - to = [ - { - shell_command = openHeliumT3Chat; - } - ]; - type = "basic"; - } - ]; - } { description = "Toggle Focus Mode with F6"; manipulators = [