-
Notifications
You must be signed in to change notification settings - Fork 608
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
Add ability to run command with sudo #584
Comments
sudo won't work. as you need to enter a password. |
For anyone interested here is i3wm binding example:
or more generally:
|
Thinking about it, and talking it over. I think @jstefanski is the best/cleanest solution. Closing. @jstefanski : Thanks. |
Thought I'd necrobump this: there's a way to do this without So, we make a rofi-powered askpass script, say
Then to run something as root, we do:
This is probably something to bind to a "run as root" hotkey in your DE. Alternatively, you could just add the environment variable to your usual
and just type PS @DaveDavenport, this could be put into the FAQ section of the wiki, not sure how frequent this topic is :) |
For anyone in the future who is confused why this doesn't work via sxhkd, it's because sxhkd strips out the
|
This is not working ! The rofi menu doesn't even show,can you be more clear about this setup ? |
Bascially what the title says. It would be grate to be able to run a program with sudo.
The text was updated successfully, but these errors were encountered: