wzykubek / rofi-keepassxc

Simple keepassxc-cli frontend in rofi/dmenu.
ISC License
43 stars 7 forks source link

feature request: wayland support #7

Open Soundtoxin opened 3 years ago

Soundtoxin commented 3 years ago

On Wayland there is a program called wofi which aims to be an equivalent to rofi (roughly). Replacing the rofi command in the m() function at the top of the script got things mostly working, but there was some weirdness. The password to unlock the DB wasn't obscured, the prompt couldn't be resized the same way, and the text couldn't be copied at the end. I was however able to see a list of my database entries and filter through them, then select an action. As for the text-copying, pretty much just replace xclip-sel clip with wl-copy. If some sort of logic (or just an argument to the script) could determine the user is on Wayland, then you could have a few alternate cases for the differences.

Here is the repo for wofi. https://hg.sr.ht/~scoopta/wofi