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.
On Wayland there is a program called
wofi
which aims to be an equivalent torofi
(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 replacexclip-sel clip
withwl-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