dotfiles/.local/bin/dmenupass

12 lines
231 B
Plaintext
Raw Normal View History

2020-07-04 14:23:27 +02:00
#!/bin/sh
# This script is the SUDO_ASKPASS variable, meaning that it will be used as a
# password prompt if needed.
if [ "$1" = "--display" ] || [ -z "$1" ]; then
prompt=Password:
else
prompt="$1"
fi
dmenu -P -p "$prompt" <&-