Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with tmux on sway wayland #218

Open
horhenani opened this issue Aug 28, 2024 · 6 comments
Open

Does not work with tmux on sway wayland #218

horhenani opened this issue Aug 28, 2024 · 6 comments

Comments

@horhenani
Copy link

horhenani commented Aug 28, 2024

terminate called after throwing an instance of 'std::system_error
what(): Connection refused

[1] + 102032 IOT instruction (core dumped) ueberzug layer

I am getting this error using tmux on wayland.
Command used: ueberzug layer &

@jstkdng
Copy link
Owner

jstkdng commented Aug 30, 2024

Does it work outside of tmux?

@horhenani
Copy link
Author

No, it doesn't work. Then I enable xwayland on sway, command "ueberzug layer &" works but it doesn't render any image using ranger or yazi.

@ovwxxwvo
Copy link

ovwxxwvo commented Nov 12, 2024

hey, I got something new for this env.
ueberzugpp does not get the correct window_cell width & height from tmux.

tmux display-message -p '#{window_cell_width}'
tmux display-message -p '#{window_cell_height}'
tmux display-message -p '#{window_width}'
tmux display-message -p '#{window_height}'

when I set the x of image to the window_width, image go to the wrong position.
if i not set the scaler option, adjust width|height can not change the show of image size.
if i set the scaler option, the show of image size only can zoom out.
when I set the width & height small than the show of image size , the terminal crash down.

20241112_161133

@ovwxxwvo
Copy link

ovwxxwvo commented Nov 12, 2024

Does it work outside of tmux?

I test this before, in xorg i3 by ueberzug, ueberzug can get the correct position of tmux,
& after I zoom in|out the alacritty, ueberzug can adjust the image position.
BUT no matter I zoom in|out the terminal, ueberzugpp don't change the image position in the term.
by the mean, what is the unit of width & height, is cell ?

@jstkdng
Copy link
Owner

jstkdng commented Nov 16, 2024

yes, the cells are calculated and then the font size is calculated, but only once, any font changes after the fact are not taken into account

@ovwxxwvo
Copy link

yes, the cells are calculated and then the font size is calculated, but only once, any font changes after the fact are not taken into account

ok, thanks, I just giving up on ueber.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants