Open matejc opened 1 year ago
Workaround seem to be to set config of Alacritty:
shell:
program: /bin/zsh
args:
- --login
- -c
- /bin/zellij
I met the same thing:
sleeping also fixes the issue with foot
/sbin/foot -a mysession zsh --login -c 'sleep 1;zellij attach --create mysession'
so it looks like timing
Any progress here? I am reproducing this consistently in every terminal, except iTerm2.
I have this happening on sessions running over an SSH proxy for some reason.
This terminal-agnostic workaround does it for me, but I need to manually re-attach to the session whenever the terminal size changes.
# detach from remote Zellij session
eval "$(/usr/bin/resize)"
# re-attach to it, terminal size is correct
Basic information
zellij --version
: 0.38.1stty size
: 32 49uname -av
orver
(Windows):Linux matej70 6.5.2 #1-NixOS SMP PREEMPT_DYNAMIC Wed Sep 6 20:22:26 UTC 2023 x86_64 GNU/Linux
List of programs: alacritty 0.12.2 hyprland 0.29.1 (d8d0cd75c2db16a14086e1d5119ed937a60c701e)
Further information Zellij config is nothing specdial:
This when I have Alacritty set like so:
Result after opening Alacritty:
It repaints and looks like it should, if I resize the window (by opening some other window side by side - I have a tiling window manager)
I am guessing that Alacritty opens at some default size and Zellij repaints to match that size, but then in next moment Hyprland resizes window to match available space on screen, at that moment Zellij should resize but it does not.
One more thing, if I open just Zsh/Bash in new Alacritty window the size is as it should be.