derf / feh

a fast and light image viewer
https://feh.finalrewind.org
Other
1.47k stars 158 forks source link

How to exit slideshow using touch monitor? #585

Closed tazar117 closed 2 years ago

tazar117 commented 3 years ago

Hi! In my project I'm using feh to display slideshows on touch monitor. The problem is that I don't know how to close slideshow as my RPi doesn't want to detect right-click gesture from touchscreen. Is there a way to add "esc" button on the slideshow screen? Adding simple "x" in the corner would make things a lot easier for me, but I'm not sure if it's even possible. If not, what can I do to workaround this problem? Maybe somehow "long tap" can be set as "exit"?

Thanks in advance.

derf commented 3 years ago

feh doesn't distinguish between short and long key presses and doesn't provide its own window manager elements. You can run feh in windowed mode and use the close button provided by your window manager, or you can make a regular mouse button press (i.e., short tap) quit feh by writing the following to ~/.config/feh/buttons:

pan
quit 1

This will remove the button binding for pan (move an image around or advance to the next one, defaults to button 1) and bind mouse button 1 to quit instead.

tazar117 commented 3 years ago

Thank you. It is the answer I expected, however I hoped to be surprised this time. I'll try to workaround it. Anyway, thanks for your answer.