Commit Graph

13 Commits

Author SHA1 Message Date
ddb279da7b kitty:daemon: Write to log file 2025-08-26 16:54:55 +02:00
07428c661d kitty:daemon: Support optional instance group name 2025-08-26 13:43:03 +02:00
a7e4c2c770 kitty:daemon: Use TMPDIR and support multi-user 2025-08-26 13:41:18 +02:00
c09ed22389 i3: Move kitty daemonization into own script 2025-08-26 13:06:08 +02:00
465e5e1330 kitty: Better font size mappings (current/all)
More fine-grained control and mappings for current terminal only.
2025-06-09 19:17:16 +02:00
a34a00eae6 i3: Fix opening kitty in the current working dir
Since I run kitty with --single-instance, xcwd does not work for it.
Replace it with a short script that retrieves the CWD for the focused
window through the remote-control ls command.

This changes the current behaviour slightly, since now only terminals
are used and not any X window (which I rarely used or needed) and that
the working dir of the shell running in kitty will be used and not of
any deeper children. I'm still unsure if I want the latter back, but
will figure this out in the future.

This is an addendum to 0139294831 ("Use kitty instead of st as
terminal").
2025-05-27 18:24:06 +02:00
18c6a17562 kitty: Change to beam cursor
Otherwise the block cursor comes out now and then (e.g. in fzf).
2025-05-22 16:47:04 +02:00
711608d6c9 kitty: Update mouse_maps to use Alt as kitty_mod 2025-05-22 16:46:46 +02:00
a9998ed371 kitty: Only set the mappings I need/use 2025-05-22 16:41:20 +02:00
ab6eb1e844 kitty: Change color scheme to modified Tango
Colors taken from my st fork. Additionally make the magenta a bit more
saturated.

This reverts 428d75a090 ("dircolors: Use a non-system color for DIR").

Link: https://github.com/druckdev/st/blob/custom/config.h#L101-L119
2025-05-22 16:38:40 +02:00
000ac0f615 kitty: Enable close_on_child_death
Otherwise closing kitty takes forever on my system:

    > kitty -1 --instance-group no -o close_on_child_death=no &
    > kitty -1 --instance-group yes -o close_on_child_death=yes &
    > kitty_cmd="kitty -1 \
                       --wait-for-single-instance-window-close \
                       --instance-group"
    > zsh_cmd="zsh -ic exit"
    > hyperfine -N "$kitty_cmd no $zsh_cmd" \
                   "$kitty_cmd yes $zsh_cmd" \
                   "st -e $zsh_cmd"

    Benchmark 1: kitty -1 \
                --wait-for-single-instance-window-close \
                --instance-group no zsh -ic exit
      Time (mean ± σ):      5.543 s ±  0.023 s    [User: 0.002 s, System: 0.005 s]
      Range (min … max):    5.486 s …  5.570 s    10 runs

    Benchmark 2: kitty -1 \
                --wait-for-single-instance-window-close \
                --instance-group yes zsh -ic exit
      Time (mean ± σ):     509.9 ms ±  29.4 ms    [User: 1.0 ms, System: 2.2 ms]
      Range (min … max):   480.9 ms … 560.1 ms    10 runs

    Benchmark 3: st -e zsh -ic exit
      Time (mean ± σ):     475.0 ms ±  12.6 ms    [User: 304.3 ms, System: 171.5 ms]
      Range (min … max):   455.6 ms … 495.7 ms    10 runs

    Summary
      st -e zsh -ic exit ran
        1.07 ± 0.07 times faster than kitty -1 \
                --wait-for-single-instance-window-close \
                --instance-group yes zsh -ic exit
       11.67 ± 0.31 times faster than kitty -1 \
                --wait-for-single-instance-window-close \
                --instance-group no zsh -ic exit

Link: https://github.com/kovidgoyal/kitty/issues/378
TODO: Could the 500ms be decreased? (zsh related)
2025-05-22 16:32:59 +02:00
a7bd58d210 kitty: Configure to align with my st settings
Except for the font and color scheme. I'm feeling experimental and
surprisingly like what kitty configured per default. Will see, if it
stays like this.
2025-05-22 01:13:45 +02:00
23d14b4ec0 kitty: Add v0.42.0 default config 2025-05-22 01:13:44 +02:00