dotfiles/scripts/rofi-ask
2023-10-04 20:19:25 -04:00

10 lines
254 B
Bash
Executable File

#!/bin/sh
# 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/://)"