Compare commits

..

2 Commits

Author SHA1 Message Date
Anton Volnuhin
a4eb8ae75d Sync Kitty automatic themes from maxwell 2026-07-27 22:44:57 +03:00
Anton Volnuhin
92d4bbd7d5 Preserve local Karabiner and Pi preferences 2026-07-27 22:33:34 +03:00
6 changed files with 131 additions and 6 deletions

View File

@ -1,8 +1,8 @@
{ {
"lastChangelogVersion": "0.80.10", "lastChangelogVersion": "0.82.1",
"theme": "dark", "theme": "dark",
"defaultProvider": "kimi-coding", "defaultProvider": "alibaba-code-plan",
"defaultModel": "k3", "defaultModel": "qwen3.8-max-preview",
"showHardwareCursor": false, "showHardwareCursor": false,
"defaultThinkingLevel": "high", "defaultThinkingLevel": "high",
"quietStartup": true, "quietStartup": true,
@ -19,4 +19,4 @@
"npm:pi-powerline-footer", "npm:pi-powerline-footer",
"npm:pi-webaio" "npm:pi-webaio"
] ]
} }

View File

@ -46,7 +46,19 @@
} }
:main [ :main [
{:des "Trackball: hold forward (button5) + roll -> scroll; tap = forward"
:rules [{:type :basic
:from {:pointing_button :button5 :modifiers {:optional [:any]}}
:to [{:set_variable {:name "ball-scroll" :value 1 :key_up_value 0}}]
:to_if_alone [{:pointing_button :button5}]
:conditions [{:type :device_if :identifiers [{:vendor_id 1133 :product_id 50504}]}]
:parameters {:basic.to_if_alone_timeout_milliseconds 200}}
{:type :mouse_motion_to_scroll
:conditions [{:type :variable_if :name "ball-scroll" :value 1}
{:type :device_if :identifiers [{:vendor_id 1133 :product_id 50504}]}]
:options {:momentum_scroll_enabled true :speed_multiplier 0.6}}]}
{:des "pedals default" {:des "pedals default"
:rules [:pedals [:left_pedal :!Tleft_command] :rules [:pedals [:left_pedal :!Tleft_command]
[:right_pedal :!TSleft_option] [:right_pedal :!TSleft_option]
@ -199,4 +211,3 @@
;; P | caps_lock ;; P | caps_lock
;; !! | mandatory command + control + optional + shift (hyper) ;; !! | mandatory command + control + optional + shift (hyper)
;; ## | optional any ;; ## | optional any

View File

@ -0,0 +1,31 @@
background #1c2836
foreground #ffffff
cursor #bbbbbb
selection_background #b4d5ff
color0 #000000
color8 #545454
color1 #f9555f
color9 #fa8b8e
color2 #20af89
color10 #34bb99
color3 #fdf029
color11 #ffff55
color4 #589cf5
color12 #589cf5
color5 #934d95
color13 #e75598
color6 #1e9ee6
color14 #3978bb
color7 #bbbbbb
color15 #ffffff
selection_foreground #1c2836
# START_AUTOGENERATED_TAB_STYLE
# Feel free to update these colors manually and remove these comments.
active_tab_foreground #1c2836
active_tab_background #2e84e6
inactive_tab_foreground #2e84e6
inactive_tab_background #1c2836
# END_AUTOGENERATED_TAB_STYLE
macos_titlebar_color background

View File

@ -0,0 +1,28 @@
background #ffffff
foreground #4c4c4c
cursor #4c4c4c
selection_background #d6d6d6
color0 #000000
color8 #000000
color1 #c82828
color9 #c82828
color2 #708b00
color10 #708b00
color3 #e9b600
color11 #e9b600
color4 #4170ae
color12 #4170ae
color5 #8958a7
color13 #8958a7
color6 #3d999f
color14 #3d999f
color7 #fffefe
color15 #fffefe
selection_foreground #ffffff
active_tab_foreground #ffffff
active_tab_background #2e84e6
inactive_tab_foreground #2e84e6
inactive_tab_background #ffffff
macos_titlebar_color background

View File

@ -0,0 +1,28 @@
background #1c2836
foreground #ffffff
cursor #bbbbbb
selection_background #b4d5ff
color0 #000000
color8 #545454
color1 #f9555f
color9 #fa8b8e
color2 #20af89
color10 #34bb99
color3 #fdf029
color11 #ffff55
color4 #589cf5
color12 #589cf5
color5 #934d95
color13 #e75598
color6 #1e9ee6
color14 #3978bb
color7 #bbbbbb
color15 #ffffff
selection_foreground #1c2836
active_tab_foreground #1c2836
active_tab_background #2e84e6
inactive_tab_foreground #2e84e6
inactive_tab_background #1c2836
macos_titlebar_color background

View File

@ -0,0 +1,27 @@
#!/bin/sh
set -eu
config_dir=${1:-"$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"}
for appearance in dark light no-preference; do
config_file="$config_dir/$appearance-theme.auto.conf"
if [ ! -f "$config_file" ]; then
echo "not ok - missing $appearance automatic Kitty theme" >&2
exit 1
fi
kitty +runpy '
from kitty.config import load_config
import sys
options = load_config(sys.argv[1])
if options.macos_titlebar_color != 1:
raise SystemExit(
f"{sys.argv[2]} automatic Kitty theme does not use its background "
"for the macOS titlebar"
)
' "$config_file" "$appearance"
done
echo "ok - automatic Kitty themes match their macOS titlebars"