316eefe916
kitty:get_cwd: Use KITTY_LISTEN_ON for socket path
...
Also verify that the socket exists before using it.
2025-12-11 15:27:39 +01:00
3a821d832b
kitty:get_cwd: Use the match flag for performance
...
Instead of requesting the full tree as a JSON and extracting the focused
window with `jq`, use `kitten-@-ls`'s `--match` flag. This further
improves the performance.
Also remove the commented code using recursive descent because it is not
up-to-date anymore.
2025-12-11 15:27:38 +01:00
b291163a80
kitty:get_cwd: Make faster by not using kitten
...
kitten-@-ls(1) is unfortunately a bit slow (100ms) which is noticeable
when launching new windows using `get_cwd`. Make `get_cwd` faster (down
to 25ms) by communicating directly with the socket instead of using
`kitten`.
2025-12-11 15:27:23 +01:00
2495d835b4
kitty: Slightly decrease click_interval to 0.4
...
Kitty's source code makes me believe that this is always 0.5s on X11.
This decreases the delay when opening links.
Link: https://github.com/kovidgoyal/kitty/blob/3482d084aef1/glfw/x11_window.c#L2360-L2363
2025-09-18 12:56:10 +02:00
dda2ff640e
kitty: Increase font size by one point to 12
2025-09-18 12:26:36 +02:00
708daa10dc
kitty: Disable cursor shell integration
...
It's super slow and I really don't need it. I'd prefer to have kitty
mess with my shell as little as possible.
2025-09-04 11:14:52 +02:00
6bd13a9b56
kitty: Open url with kitty_mod+f
...
Similar to zathura's `f` to follow links.
2025-09-04 11:14:45 +02:00
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