dotfiles/private_dot_config/private_fish/functions
Anton Volnuhin 513ec573b1 tide: ask the terminal from inside tmux too
The OSC 11 query opted out under tmux on the assumption it would need the
\ePtmux; passthrough wrapper. It does not, and that assumption cost the
fix precisely where it was wanted: ssh'd into a box inside tmux.

tmux answers OSC 11 from a pane itself, out of the background it queried
from the outer terminal, and it re-queries when that terminal reports a
colour scheme change -- so the value tracks the real window rather than
going stale at tmux start. Measured on tmux 3.7b, the version on both
ends: a pane's query is answered without ever reaching the outer
terminal, and after a colour scheme notification the next query returns
the new background. No tmux configuration is required.

Passthrough is the wrong tool here and stays unused: it is output-only,
so the outer terminal's reply goes to tmux rather than to the pane, and
a wrapped query returns nothing at all.

screen keeps opting out -- untested rather than known broken, and there
the caller falls back to the config files as before.

The live pty suite gains a remote-tmux scenario: config files all dark,
terminal reporting light, the whole thing inside tmux. It fails with the
opt-out restored.
2026-08-06 18:04:39 +03:00
..
__kitty_config_dir.fish kitty: remember the light/dark mode across restarts 2026-08-06 01:49:45 +03:00
__kitty_host_color.fish kitty: color terminal tabs by ssh/mosh host 2026-05-19 23:08:32 +03:00
__kitty_macos_appearance.fish kitty: remember the light/dark mode across restarts 2026-08-06 01:49:45 +03:00
__kitty_ssh_host.fish kitty: color terminal tabs by ssh/mosh host 2026-05-19 23:08:32 +03:00
__kitty_tab_reset.fish kitty: color terminal tabs by ssh/mosh host 2026-05-19 23:08:32 +03:00
__kitty_tab_set.fish kitty: give active ssh tabs the same foreground as every other tab 2026-08-06 01:35:25 +03:00
__kitty_theme_current.fish kitty: remember the light/dark mode across restarts 2026-08-06 01:49:45 +03:00
__kitty_theme_mode_setting.fish kitty: remember the light/dark mode across restarts 2026-08-06 01:49:45 +03:00
n.fish lazygit, dust, nnn, mc, nethogs, ngrep, mtr, tmux, jq 2023-06-01 10:42:00 +03:00
ping4.fish ping: check IPv6 is actually usable, and split ping4 per platform 2026-08-06 03:38:12 +03:00
private___tide_apply_terminal_appearance.fish tide: derive the light segment background from the terminal's own 2026-08-06 15:34:51 +03:00
private___tide_contrast_ceiling.fish tide: derive the light segment background from the terminal's own 2026-08-06 15:34:51 +03:00
private___tide_parse_osc_background.fish tide: ask the terminal for its background instead of reading config files 2026-08-06 16:08:40 +03:00
private___tide_relative_luminance.fish tide: derive the light segment background from the terminal's own 2026-08-06 15:34:51 +03:00
private___tide_scale_luminance.fish tide: derive the light segment background from the terminal's own 2026-08-06 15:34:51 +03:00
private___tide_terminal_background_color.fish tide: ask the terminal for its background instead of reading config files 2026-08-06 16:08:40 +03:00
private___tide_terminal_light_color.fish fish, kitty: follow terminal light theme 2026-07-27 20:20:38 +03:00
private___tide_terminal_osc_background.fish tide: ask the terminal from inside tmux too 2026-08-06 18:04:39 +03:00
private_kitten.fish kitty: match any prefix of the themes kitten, not just "themes" 2026-08-06 05:04:05 +03:00
ssh.fish kitty: color terminal tabs by ssh/mosh host 2026-05-19 23:08:32 +03:00
theme.fish kitty: remember the light/dark mode across restarts 2026-08-06 01:49:45 +03:00
tide-reset.fish new tide config, cmd+N for kitty, slightly bigger font in kitty 2026-04-05 19:36:34 +03:00