commit 15ed8e94a4d60cc73b8c224e2cc9af673eae5fe2 parent be7fe0e3227a5c4e74d44316343e91891bdd69b2 Author: Chris Noxz <chris@noxz.tech> Date: Mon, 8 Jun 2020 22:21:21 +0200 [bin] add dmenu_pass for dmenu password prompts Diffstat:
A | bin/.local/bin/dmenu_pass | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/bin/.local/bin/dmenu_pass b/bin/.local/bin/dmenu_pass @@ -0,0 +1,10 @@ +#!/bin/sh +dmenu_vtc="$(command -v dmenu_vtc)" + +die() { + printf "Error: %s\n" "$@" + exit 1 +} + +[ -z "$dmenu_vtc" ] && die "could not find 'dmenu_vtc'" +$dmenu_vtc -P -p "${1%% *}" <&-