Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
boresk opened this issue May 14, 2024 · 6 comments
Closed

Comments

@boresk
Copy link

boresk commented May 14, 2024

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
Copy link
Owner

fdw commented May 14, 2024

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
Copy link
Author

boresk commented May 14, 2024

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
Copy link
Owner

fdw commented May 14, 2024

Have you used copy or type for the action?

@boresk
Copy link
Author

boresk commented May 14, 2024

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
Copy link
Owner

fdw commented May 14, 2024

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

@boresk
Copy link
Author

boresk commented May 14, 2024

That works, thanks a lot!

@boresk boresk closed this as completed May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants