From f3cb672d6540037130e3b3a153f210dccd319644 Mon Sep 17 00:00:00 2001 From: tracer Date: Mon, 30 Mar 2026 20:35:43 +0200 Subject: [PATCH] working on hud setup --- .../complex_modifications/kitty-hud.json | 2 +- .../kitty-quick-access.json | 2 +- karabiner/karabiner.json | 112 ++++++++++++++++++ kitty/kitty.conf | 4 +- kitty/macos-launch-services-cmdline | 1 + 5 files changed, 118 insertions(+), 3 deletions(-) create mode 100644 kitty/macos-launch-services-cmdline diff --git a/karabiner/assets/complex_modifications/kitty-hud.json b/karabiner/assets/complex_modifications/kitty-hud.json index 78a114a..bebdc10 100644 --- a/karabiner/assets/complex_modifications/kitty-hud.json +++ b/karabiner/assets/complex_modifications/kitty-hud.json @@ -12,7 +12,7 @@ "key_code": "vk_none" }, { - "shell_command": "/Applications/kitty.app/Contents/MacOS/kitten quick-access-terminal >/tmp/kitty-quick-access.log 2>&1 &" + "shell_command": "/Applications/kitty.app/Contents/kitty-quick-access.app/Contents/MacOS/kitty-quick-access --instance-group quick-access >/tmp/kitty-quick-access.log 2>&1 < /dev/null &" } ] } diff --git a/karabiner/assets/complex_modifications/kitty-quick-access.json b/karabiner/assets/complex_modifications/kitty-quick-access.json index e1fde42..6b2cfef 100644 --- a/karabiner/assets/complex_modifications/kitty-quick-access.json +++ b/karabiner/assets/complex_modifications/kitty-quick-access.json @@ -15,7 +15,7 @@ }, "to": [ { - "shell_command": "/Applications/kitty.app/Contents/MacOS/kitten quick-access-terminal --detach" + "shell_command": "/Applications/kitty.app/Contents/kitty-quick-access.app/Contents/MacOS/kitty-quick-access --instance-group quick-access >/tmp/kitty-quick-access.log 2>&1 < /dev/null &" } ] } diff --git a/karabiner/karabiner.json b/karabiner/karabiner.json index 4bef48c..93821c9 100644 --- a/karabiner/karabiner.json +++ b/karabiner/karabiner.json @@ -3,6 +3,118 @@ { "complex_modifications": { "rules": [ + { + "description": "codex: map cmd+v and shift+enter", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "^com\\.openai\\.codex$" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "v", + "modifiers": { + "mandatory": ["command"], + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "v", + "modifiers": ["control"] + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "^com\\.openai\\.codex$" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "return_or_enter", + "modifiers": { + "mandatory": ["shift"], + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "j", + "modifiers": ["control"] + } + ], + "type": "basic" + } + ] + }, + { + "description": "kitty: map cmd+enter to new OS window globally", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "^net\\.kovidgoyal\\.kitty$" + ], + "type": "frontmost_application_unless" + } + ], + "from": { + "key_code": "return_or_enter", + "modifiers": { + "mandatory": ["command"], + "optional": ["any"] + } + }, + "to": [ + { + "shell_command": "/Applications/kitty.app/Contents/MacOS/kitty --single-instance" + } + ], + "type": "basic" + } + ] + }, + { + "description": "kitty: map ctrl+enter to quick access terminal globally", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "^net\\.kovidgoyal\\.kitty$" + ], + "type": "frontmost_application_unless" + } + ], + "from": { + "key_code": "return_or_enter", + "modifiers": { + "mandatory": ["control"], + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "vk_none" + }, + { + "shell_command": "/Applications/kitty.app/Contents/MacOS/kitten quick-access-terminal --instance-group quick-access >/tmp/kitty-quick-access.log 2>&1 < /dev/null &" + } + ], + "type": "basic" + } + ] + }, { "description": "kitty: map cmd+left/right to ctrl+left/right", "manipulators": [ diff --git a/kitty/kitty.conf b/kitty/kitty.conf index d17454e..f18c4f7 100644 --- a/kitty/kitty.conf +++ b/kitty/kitty.conf @@ -9,9 +9,11 @@ enable_audio_bell 0 hide_window_decorations titlebar-only macos_show_window_title_in none macos_titlebar_color background +copy_on_select clipboard +term xterm-256color map ctrl+left previous_tab map ctrl+right next_tab window_padding_width 10 +map cmd+shift+r load_config_file map cmd+enter new_os_window -map ctrl+enter kitten quick-access-terminal diff --git a/kitty/macos-launch-services-cmdline b/kitty/macos-launch-services-cmdline new file mode 100644 index 0000000..5074709 --- /dev/null +++ b/kitty/macos-launch-services-cmdline @@ -0,0 +1 @@ +--single-instance