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

How to use command-line flags like -terse in config.rasi? #115

Open
qadzek opened this issue Jan 7, 2024 · 1 comment
Open

How to use command-line flags like -terse in config.rasi? #115

qadzek opened this issue Jan 7, 2024 · 1 comment

Comments

@qadzek
Copy link

qadzek commented Jan 7, 2024

Thanks a lot for this very useful plugin.

Running the sample commands (e.g. rofi -show calc -modi calc -no-show-match -no-sort -no-bold) on the command-line works fine for me, but I was wondering if we can also use these flags in config.rasi.

For instance, the rofi-power-menu plugin allows for the following:

configuration {
  modi: [
    "combi",
    "calc",
    "filebrowser",
    "p:rofi-power-menu --choices=logout/suspend/hibernate/reboot/shutdown"
  ];
}

That plugin is just a Bash script though. Trying something similar for rofi-calc (e.g. "calc -terse") returns the error Mode calc -terse is not found.

@Elmegaard
Copy link

As a workaround you can just add the commands to the command-line of rofi and it should work, for example:
rofi -show drun -calc-command "echo -n '{result}' | wl-copy"

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