From b4c628fe9fef514d70bb2e0138260e976107b610 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Sat, 18 Mar 2023 15:43:43 +0530 Subject: .bashrc+tofi-askpass: setting SUDO_ASKPASS for tofi --- .bashrc | 1 + .local/bin/tofi-askpass | 2 ++ 2 files changed, 3 insertions(+) create mode 100755 .local/bin/tofi-askpass diff --git a/.bashrc b/.bashrc index 029d21d..2eee29e 100644 --- a/.bashrc +++ b/.bashrc @@ -40,6 +40,7 @@ set -o ignoreeof export PATH="$PATH:$HOME/.scripts" # Adds `~/.local/bin` to $PATH export PATH="$PATH:$HOME/.local/bin" +export SUDO_ASKPASS="$HOME/.local/bin/tofi-askpass" #infinite history diff --git a/.local/bin/tofi-askpass b/.local/bin/tofi-askpass new file mode 100755 index 0000000..146ba9b --- /dev/null +++ b/.local/bin/tofi-askpass @@ -0,0 +1,2 @@ +#!/bin/sh +tofi --prompt-text "Password: " --hide-input true --require-match false < /dev/null -- cgit v1.2.3