wl-kbptr icon indicating copy to clipboard operation
wl-kbptr copied to clipboard

[Feature Request] Option to automatically repeat activation until Escape pressed

Open kevb1973 opened this issue 1 year ago • 5 comments

Thanks for making this app. It's really useful for a keyboard focused user like me.

Rationale

Quite often, it takes multiple clicks to complete a task. This requires multiple activation's of the keybind and makes the process a bit awkward.

Vimium and other keyboard focused browser extensions usually have a mode that allows clicking multiple links in a row without reactivating. This makes it natural to work your way through a menu etc. Just keep 'clicking' and press ESC when done.

kevb1973 avatar Nov 08 '25 06:11 kevb1973

You can already do it with a shell script:

while wl-kbptr -o cancellation_status_code=1; do true; done

moverest avatar Nov 30 '25 23:11 moverest

You can already do it with a shell script:

while wl-kbptr -o cancellation_status_code=1; do true; done

Thank you, I'll give that a try. 👍

Edit: Gave it a try, and while it does repeat, pressing ESC, Ctrl-c etc. does not exit the loop. I had to kill it from a VT. Thanks for the idea though.

After further testing, it seems that even with -o cancellation_status_code=1 set, pressing ESC still returns 0.

kevb1973 avatar Dec 01 '25 00:12 kevb1973

I'm confused because it works on my system. Which version are you using? Do you have a configuration?

moverest avatar Dec 19 '25 23:12 moverest

slaps forehead

I just figured out the issue. Apparently when I setup wlr-kbptr, I copy/pasted config.example to my system. That config sets cancellation_status_code=0, so it was being ignored in my command. Now that I've updated the config, it works great!

kevb1973 avatar Dec 19 '25 23:12 kevb1973

I see. On the latest release (0.4.1) the -o option should take precedence. Previously it was the opposite because of a mistake.

moverest avatar Dec 19 '25 23:12 moverest