diff options
author | sinanmohd <sinan@firemail.cc> | 2023-03-17 19:48:49 +0530 |
---|---|---|
committer | sinanmohd <sinan@firemail.cc> | 2023-03-17 19:49:57 +0530 |
commit | 3d6a9d7c94a8562ae22d41147379d72cb269c110 (patch) | |
tree | 227f1b7cd7f985b318f391eb6c6043c207edc540 /daskpass | |
parent | ddf226573ed20deda59030ad4664339eab3c3e5d (diff) |
daskpass: initial commit: a password prompt
Diffstat (limited to 'daskpass')
-rwxr-xr-x | daskpass | 10 |
1 files changed, 10 insertions, 0 deletions
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 |