passprompt.sh 330 B

123456789
  1. #!/usr/bin/env bash
  2. # Helps to ask for sudo password in GUI with rofi and passes it to sudo.
  3. # It just takes input of the password and prints it.
  4. # Same can be done with anything else in the world.
  5. # License: CC0
  6. rofi -dmenu -i -p 'sudo password' -password -theme-str 'inputbar {children: [prompt,entry];} listview {lines: 0;}'