From e6a46d699b5dafa35ffb38ccdf5153d67f7348e4 Mon Sep 17 00:00:00 2001 From: krolxon Date: Mon, 4 Aug 2025 21:45:34 +0530 Subject: use rofi for SUDO_ASKPASS --- .local/bin/rofipass | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .local/bin/rofipass (limited to '.local/bin/rofipass') 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/://)" -- cgit v1.2.3