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

Option for disable key input (only draw image) #122

Closed
lievin-christopher opened this issue Mar 28, 2024 · 2 comments
Closed

Option for disable key input (only draw image) #122

lievin-christopher opened this issue Mar 28, 2024 · 2 comments

Comments

@lievin-christopher
Copy link

Hi,
I'm working at using swayimg in ranger for images preview.
But swayimg keep grab my input when I preview images in ranger. so I wonder if it's possible to implement a "no input" option ?

@artemsen
Copy link
Owner

Swayimg (like any other application) will grab input as long as its window has input focus.
You can configure Swayimg to ignore default key bindings by overriding them in the configuration file :

[keys]
Enter = none

However it doesn't solve your problem, ranger will not receive keyboard events until you set the input focus to its own window.
Swayimg itself cannot do this, this is the task of your compositor (Sway, Hyperland, ...).

@lievin-christopher
Copy link
Author

Yes, I just find the issue.
It's linked to sway and this occur only on floating window (and maybe multi-monitor).
Thanks for your answer

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

2 participants