aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md3
-rwxr-xr-xdaskpass10
2 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index 661ba04..b285eff 100644
--- a/README.md
+++ b/README.md
@@ -53,3 +53,6 @@ value which is "wg0"
## wip - what is my ip
wip queries host's ipv4 address using opendns and displays the ip details using
the geoip database
+
+## daskpass
+this can be used as a password prompt. to use it with sudo set SUDO_ASKPASS
diff --git a/daskpass b/daskpass
new file mode 100755
index 0000000..948e0c3
--- /dev/null
+++ b/daskpass
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# this can be used as a password prompt.
+
+if [ -z "$WAYLAND_DISPLAY" ]
+then
+ printf "" | dmenu -P -p "$1"
+else
+ printf "" | wmenu -P -p "$1"
+fi