Remove kitty and Karabiner config from dotfiles

This commit is contained in:
2026-09-13 10:29:13 +02:00
parent 189efd3a8a
commit 99e96fa2fd
10 changed files with 0 additions and 600 deletions
@@ -1,3 +0,0 @@
# Pin the quick access terminal to the center display instead of following the
# active monitor when it is toggled open.
output_name LU28R55
-41
View File
@@ -88,14 +88,9 @@ apply_dotfiles() {
link_dotfile "$DOTFILES_DIR/.gitconfig" "$HOME/.gitconfig"
link_dotfile "$DOTFILES_DIR/.p10k.zsh" "$HOME/.p10k.zsh"
mkdir -p "$HOME/.config"
link_dotfile "$DOTFILES_DIR/kitty" "$HOME/.config/kitty"
link_dotfile "$DOTFILES_DIR/nvim" "$HOME/.config/nvim"
link_dotfile "$DOTFILES_DIR/tmux" "$HOME/.config/tmux"
if is_macos; then
install_karabiner_config
fi
install_fonts
install_kitty_icon
install_tmux_plugins
install_powerlevel10k
@@ -160,42 +155,6 @@ link_dotfile() {
echo "${GREEN}Linked $target_path -> $source_path${RESET}"
}
install_karabiner_config() {
mkdir -p "$HOME/.config/karabiner"
link_dotfile "$DOTFILES_DIR/karabiner/karabiner.json" "$HOME/.config/karabiner/karabiner.json"
link_dotfile "$DOTFILES_DIR/karabiner/assets" "$HOME/.config/karabiner/assets"
}
install_kitty_icon() {
icon_path="$DOTFILES_DIR/kitty/kitty.app.png"
if ! is_macos; then
return
fi
if ! command_exists kitty; then
skip "kitty icon setup: kitty is not installed."
return
fi
if [ ! -d /Applications/kitty.app ]; then
skip "kitty icon setup: /Applications/kitty.app was not found."
return
fi
if [ ! -f "$icon_path" ]; then
skip "kitty icon setup: $icon_path was not found."
return
fi
echo "${BLUE}Applying custom kitty icon...${RESET}"
kitty +runpy 'from kitty.fast_data_types import cocoa_set_app_icon; import sys; cocoa_set_app_icon(*sys.argv[1:]); print("OK")' \
"$icon_path" /Applications/kitty.app
echo
}
install_fonts() {
if ! is_macos; then
return
-1
View File
@@ -1 +0,0 @@
/Users/tracer/.config/dotfiles/karabiner/assets
@@ -1,196 +0,0 @@
{
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "kitty: map shift+enter for codex cli",
"manipulators": [
{
"conditions": [
{
"bundle_identifiers": [
"^net\\.kovidgoyal\\.kitty(-quick-access)?$"
],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "return_or_enter",
"modifiers": {
"mandatory": ["shift"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "j",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"bundle_identifiers": [
"^net\\.kovidgoyal\\.kitty(-quick-access)?$"
],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "return_or_enter",
"modifiers": {
"mandatory": ["option"]
}
},
"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(-quick-access)?$"
],
"type": "frontmost_application_unless"
}
],
"from": {
"key_code": "return_or_enter",
"modifiers": {
"mandatory": ["command"]
}
},
"to": [
{
"key_code": "vk_none"
},
{
"shell_command": "/Applications/kitty.app/Contents/MacOS/kitty --single-instance --directory ~"
}
],
"type": "basic"
}
]
},
{
"description": "kitty: map ctrl+enter to quick access terminal globally",
"manipulators": [
{
"from": {
"key_code": "return_or_enter",
"modifiers": {
"mandatory": ["control"]
}
},
"to": [
{
"key_code": "vk_none"
},
{
"shell_command": "$HOME/.config/kitty/launch-quick-access-terminal.sh >/tmp/kitty-quick-access.log 2>&1 < /dev/null &"
}
],
"type": "basic"
},
{
"from": {
"key_code": "keypad_enter",
"modifiers": {
"mandatory": ["control"]
}
},
"to": [
{
"key_code": "vk_none"
},
{
"shell_command": "$HOME/.config/kitty/launch-quick-access-terminal.sh >/tmp/kitty-quick-access.log 2>&1 < /dev/null &"
}
],
"type": "basic"
}
]
},
{
"description": "kitty: map cmd+left/right to ctrl+left/right",
"manipulators": [
{
"conditions": [
{
"bundle_identifiers": [
"^net\\.kovidgoyal\\.kitty(-quick-access)?$"
],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "left_arrow",
"modifiers": {
"mandatory": ["command"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"bundle_identifiers": [
"^net\\.kovidgoyal\\.kitty(-quick-access)?$"
],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "right_arrow",
"modifiers": {
"mandatory": ["command"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": ["control"]
}
],
"type": "basic"
}
]
}
]
},
"fn_function_keys": [
{
"from": { "key_code": "f6" },
"to": [{ "key_code": "f6" }]
}
],
"name": "Default profile",
"selected": true,
"virtual_hid_keyboard": {
"country_code": 0,
"keyboard_type_v2": "ansi"
}
}
]
}
-177
View File
@@ -1,177 +0,0 @@
{
"global": { "show_in_menu_bar": false },
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "kitty: map shift+enter for codex cli",
"manipulators": [
{
"conditions": [
{
"bundle_identifiers": [
"^net\\.kovidgoyal\\.kitty(-quick-access)?$"
],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "return_or_enter",
"modifiers": {
"mandatory": ["shift"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "j",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"bundle_identifiers": [
"^net\\.kovidgoyal\\.kitty(-quick-access)?$"
],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "return_or_enter",
"modifiers": { "mandatory": ["option"] }
},
"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(-quick-access)?$"
],
"type": "frontmost_application_unless"
}
],
"from": {
"key_code": "return_or_enter",
"modifiers": { "mandatory": ["command"] }
},
"to": [
{ "key_code": "vk_none" },
{ "shell_command": "/usr/bin/open -na /Applications/kitty.app --args --directory $HOME" }
],
"type": "basic"
}
]
},
{
"description": "kitty: map ctrl+enter to quick access terminal globally",
"manipulators": [
{
"from": {
"key_code": "return_or_enter",
"modifiers": { "mandatory": ["control"] }
},
"to": [
{ "key_code": "vk_none" },
{ "shell_command": "$HOME/.config/kitty/launch-quick-access-terminal.sh >/tmp/kitty-quick-access.log 2>&1 < /dev/null &" }
],
"type": "basic"
},
{
"from": {
"key_code": "keypad_enter",
"modifiers": { "mandatory": ["control"] }
},
"to": [
{ "key_code": "vk_none" },
{ "shell_command": "$HOME/.config/kitty/launch-quick-access-terminal.sh >/tmp/kitty-quick-access.log 2>&1 < /dev/null &" }
],
"type": "basic"
}
]
},
{
"description": "kitty: map cmd+left/right to ctrl+left/right",
"manipulators": [
{
"conditions": [
{
"bundle_identifiers": [
"^net\\.kovidgoyal\\.kitty(-quick-access)?$"
],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "left_arrow",
"modifiers": {
"mandatory": ["command"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": ["control"]
}
],
"type": "basic"
},
{
"conditions": [
{
"bundle_identifiers": [
"^net\\.kovidgoyal\\.kitty(-quick-access)?$"
],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "right_arrow",
"modifiers": {
"mandatory": ["command"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": ["control"]
}
],
"type": "basic"
}
]
}
]
},
"fn_function_keys": [
{
"from": { "key_code": "f6" },
"to": [{ "key_code": "f6" }]
}
],
"name": "Default profile",
"selected": true,
"virtual_hid_keyboard": {
"country_code": 0,
"keyboard_type_v2": "ansi"
}
}
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 910 KiB

-35
View File
@@ -1,35 +0,0 @@
font_family family="JetbrainsMono Nerd Font Mono"
bold_font auto
italic_font auto
bold_italic_font auto
font_size 14
adjust_line_height 125%
cursor_shape block
cursor_trail 120
cursor_trail_decay 0.08 0.25
cursor_trail_start_threshold 3
cursor_trail_color #ff8844
cursor_blink_interval 0.5
cursor_stop_blinking_after 0
shell_integration no-cursor
enable_audio_bell 0
background_opacity 0.85
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
map cmd+k combine : clear_terminal scrollback active : clear_terminal clear active
tab_bar_style separator
tab_separator " ┇"
tab_bar_edge top
window_padding_width 10
remember_window_size no
initial_window_width 160c
initial_window_height 35c
map cmd+shift+r load_config_file
map cmd+enter launch --type=os-window --cwd=~
-18
View File
@@ -1,18 +0,0 @@
#!/bin/sh
set -eu
script_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)
dotfiles_dir=$(CDPATH= cd -- "$script_dir/.." && pwd -P)
host_name=$(scutil --get LocalHostName 2>/dev/null || hostname -s 2>/dev/null || hostname)
kitty_kitten=/Applications/kitty.app/Contents/MacOS/kitten
studio_config=$dotfiles_dir/hosts/studio/kitty/quick-access-terminal.conf
if [ "$host_name" = "studio" ] && [ -f "$studio_config" ]; then
exec "$kitty_kitten" quick-access-terminal --instance-group quick-access --config "$studio_config" \
"$kitty_kitten" run-shell --cwd "$HOME"
fi
exec "$kitty_kitten" quick-access-terminal --instance-group quick-access \
"$kitty_kitten" run-shell --cwd "$HOME"
-1
View File
@@ -1 +0,0 @@
--single-instance
-128
View File
@@ -1,128 +0,0 @@
# vim:fileencoding=utf-8:foldmethod=marker
#: Window appearance {{{
# lines 25
#: The number of lines shown in the panel. Ignored for background,
#: centered, and vertical panels. If it has the suffix px then it sets
#: the height of the panel in pixels instead of lines.
# columns 80
#: The number of columns shown in the panel. Ignored for background,
#: centered, and horizontal panels. If it has the suffix px then it
#: sets the width of the panel in pixels instead of columns.
# edge top
#: Which edge of the screen to place the panel on. Note that some
#: window managers (such as i3) do not support placing docked windows
#: on the left and right edges. The value background means make the
#: panel the "desktop wallpaper". Note that when using sway if you set
#: a background in your sway config it will cover the background drawn
#: using this kitten. Additionally, there are three more values:
#: center, center-sized and none. The value center anchors the panel
#: to all sides and covers the entire display (on macOS the part of
#: the display not covered by titlebar and dock). The panel can be
#: shrunk and placed using the margin parameters. The value none
#: anchors the panel to the top left corner and should be placed using
#: the margin parameters. Its size is set by lines and columns. The
#: value center-sized is just like none except that the panel is
#: centered instead of in the top left corner and the margins have no
#: effect.
# background_opacity 0.85
#: The background opacity of the window. This works the same as the
#: kitty option of the same name, it is present here as it has a
#: different default value for the quick access terminal.
# hide_on_focus_loss no
#: Hide the window when it loses keyboard focus automatically. Using
#: this option will force focus_policy to on-demand.
# grab_keyboard no
#: Grab the keyboard. This means global shortcuts defined in the OS
#: will be passed to kitty instead. Useful if you want to create an OS
#: modal window. How well this works depends on the OS/window
#: manager/desktop environment. On Wayland it works only if the
#: compositor implements the inhibit-keyboard-shortcuts protocol
#: <https://wayland.app/protocols/keyboard-shortcuts-inhibit-
#: unstable-v1>. On macOS Apple doesn't allow applications to grab the
#: keyboard without special permissions, so it doesn't work.
# margin_left 0
#: Set the left margin for the panel, in pixels. Has no effect for
#: right edge panels. Only works on macOS and Wayland compositors that
#: supports the wlr layer shell protocol.
# margin_right 0
#: Set the right margin for the panel, in pixels. Has no effect for
#: left edge panels. Only works on macOS and Wayland compositors that
#: supports the wlr layer shell protocol.
# margin_top 0
#: Set the top margin for the panel, in pixels. Has no effect for
#: bottom edge panels. Only works on macOS and Wayland compositors
#: that supports the wlr layer shell protocol.
# margin_bottom 0
#: Set the bottom margin for the panel, in pixels. Has no effect for
#: top edge panels. Only works on macOS and Wayland compositors that
#: supports the wlr layer shell protocol.
# kitty_conf
#: Path to config file to use for kitty when drawing the window. Can
#: be specified multiple times. By default, the normal kitty.conf is
#: used. Relative paths are resolved with respect to the kitty config
#: directory.
# kitty_override
#: Override individual kitty configuration options, can be specified
#: multiple times. Syntax: kitty_override name=value. For example:
#: kitty_override font_size=20.
# app_id kitty-quick-access
#: On Wayland set the namespace of the layer shell surface. On X11 set
#: the WM_CLASS assigned to the quick access window. (Linux only)
# output_name
#: The panel can only be displayed on a single monitor (output) at a
#: time. This allows you to specify which output is used, by name. If
#: not specified the compositor will choose an output automatically,
#: typically the last output the user interacted with or the primary
#: monitor. Run kitten panel --output-name list to get a list of
#: available outputs. Use listjson for a json encoded output. Note
#: that on Wayland the output can only be set at panel creation time,
#: it cannot be changed after creation, nor is there anyway to display
#: a single panel on all outputs. Please complain to the Wayland
#: developers about this.
# start_as_hidden no
#: Whether to start the quick access terminal hidden. Useful if you
#: are starting it as part of system startup.
# focus_policy exclusive
#: On a Wayland compositor that supports the wlr layer shell protocol,
#: specify the focus policy for keyboard interactivity with the panel.
#: Please refer to the wlr layer shell protocol documentation for more
#: details. Note that different Wayland compositors behave very
#: differently with exclusive, your mileage may vary. On macOS,
#: exclusive and on-demand are currently the same.
#: }}}