fdw / rofimoji

Emoji, unicode and general character picker for rofi and rofi-likes
https://github.com/fdw/rofimoji
MIT License
847 stars 48 forks source link

Where to put --action in rofi mode? Cannot get copy as default action #187

Closed boresk closed 4 months ago

boresk commented 4 months ago

I'm trying to change the default action in rofi mode. Is it something possible? I've installed rofimoji from nix and I'm using a debian distro. I am able to copy the emoji with alt+shift+1.

rofi -modi 'emoji:rofimoji ' --action copy -show emoji -theme ~/.config/rofi/launchers/type-2/style-1.rasi

fdw commented 4 months ago

You need to pass it as a parameter to rofimoji, not to rofi. So: rofi -modi 'emoji:rofimoji --action copy' -show emoji -theme ~/.config/rofi/launchers/type-2/style-1.rasi. Or you put it in the config file.

boresk commented 4 months ago

I get the following error:

rofimoji: error: argument --action/-a: invalid Action value: 'ℹ information <small>(i, information)</small>'

Seems like the emoji is passed to action

fdw commented 4 months ago

Have you used copy or type for the action?

boresk commented 4 months ago

copy (exactly like you've typed)

Edit: rofi -modi 'emoji:rofimoji --action copy' -show emoji

Error: rofimoji: error: argument --action/-a: invalid Action value: '◀ reverse button <small>(arrow, left, reverse, reverse button, triangle)</small>'

fdw commented 4 months ago

Can you try rofi -modi 'emoji:rofimoji --action=copy' -show emoji please?

boresk commented 4 months ago

That works, thanks a lot!