Skip to content

Instantly share code, notes, and snippets.

@BlurryFlurry
Created October 11, 2018 10:38

Revisions

  1. BlurryFlurry created this gist Oct 11, 2018.
    9 changes: 9 additions & 0 deletions askpass-rofi.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #!/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/://)"