davatorium / rofi

Rofi: A window switcher, application launcher and dmenu replacement
https://davatorium.github.io/rofi/
Other
13.06k stars 608 forks source link

how to add gksu before run ? #636

Closed icf20 closed 7 years ago

icf20 commented 7 years ago

Version

Output of rofi -v 1.3.1

if i type "printer" on rofi run mode i get system-config-printer, i dint find anyway to auto complete "system-config-printer" instead of "printer" into the run field to add gksu, the only way to do this is to type everything " gksu system-config-printer" and is annoying

edit: i know i can select the system-config-printer with ctrl+space but then i need to press the left arrow key until the cursor goes in front of system-config-printer because "start/home" dont work

carnager commented 7 years ago

You can change the run-command option, but that would be for EVERY call

You can also misuse the run-shell-command option for this, but you would loose the ability to run shell scripts from rofi.

in your rofi config simply add: run-shell-command: "gksu '{cmd}'"

Then open applications with gksu by hitting Shift+Enter

Apart from that, your custom command should appear on top, because its weight in history will increase, the more often you use it.

And finally you can always put a wrapper script in $PATH

icf20 commented 7 years ago

and i found it ... ctrl+a does what I expected home to do

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.