commit 7f711b616a18581f20e275fa69cbfc9159d4048c Spenser Truex <truex@equwal.com> 2025-09-05 01:23:24 -0700 Add hack
README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/README.md b/README.md index 5d8dac8..f8a2794 100644 --- a/README.md +++ b/README.md @@ -32,4 +32,16 @@ with that. - [sbm](https://github.com/equwal/sbm): manage your bookmarks list - [tnon](https://github.com/equwal/tnot): like tmux but not (using mtm and abduco) +## Quick hack for dmenu with sudo + +You *could* do: +``` +alias program='SUDO_ASKPASS=dgivepass sudo -A program' +``` + +but it won't come up in dmenu_run. So move `program` to `program-aux` and make a new script at program: +``` +#!/bin/sh +SUDO_ASKPASS=dgivepass sudo -A program +```