Skip to content

Instantly share code, notes, and snippets.

Created October 11, 2018 10:38
What would you like to do?
Ask sudo password rofi
# Take password prompt from STDIN, print password to STDOUT
# the sed piece just removes the colon from the provided
# prompt: rofi -p already gives us a colon
rofi -dmenu \
-password \
-no-fixed-num-lines \
-p "$(printf "$1" | sed s/://)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment