summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/dmenupass6
-rwxr-xr-x.local/bin/rofipass9
2 files changed, 9 insertions, 6 deletions
diff --git a/.local/bin/dmenupass b/.local/bin/dmenupass
deleted file mode 100755
index b8e2f1b..0000000
--- a/.local/bin/dmenupass
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-# This script is the SUDO_ASKPASS variable, meaning that it will be used as a
-# password prompt if needed.
-
-dmenu -P -p "$1" <&- && echo
diff --git a/.local/bin/rofipass b/.local/bin/rofipass
new file mode 100755
index 0000000..b1bf6a3
--- /dev/null
+++ b/.local/bin/rofipass
@@ -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/://)"