summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-09-13 22:00:34 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-09-13 22:00:34 -0500
commit69e2cf6f2921e5e22697ccc5b97ad3e01b71aa7c (patch)
tree7127b269423e3be65437267c9cc3b6495b9c02de
parent6029e36f2fc649ef4591701cb9e29efede36e94f (diff)
downloadscripts-69e2cf6f2921e5e22697ccc5b97ad3e01b71aa7c.tar.xz
scripts-69e2cf6f2921e5e22697ccc5b97ad3e01b71aa7c.zip
remove xsudoHEADmaster
-rwxr-xr-xx11/xsudo32
1 files changed, 0 insertions, 32 deletions
diff --git a/x11/xsudo b/x11/xsudo
deleted file mode 100755
index 03a01c4..0000000
--- a/x11/xsudo
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-
-printhelp() {
-cat << HELPDOC "
-usage: $(basename "$0") command"
-usage: $(basename "$0") [-gh]"
-
-options:
- -g, --get-pass print password to stdout and exit. will output blank if in 'nopass' mode
- -h, --help show this help page and exit
-HELPDOC
-}
-
-# get password
-sudo=${SUDO:-sudo}
-while ! echo "$pass" | $sudo -n true; do
- pass="$(dmenu -p 'Password: ' <&-)" # Ask user for password pass is incorrect (skipped if nopass in enabled)
- [ "$pass" = '' ] && exit 0
-done
-
-
-# options
-[ -z "$1" ] && printhelp && exit 1
-
-case "$1" in
- -g|--get-pass) printf "$pass" && exit 0 ;;
- -h|--help) printhelp && exit 0 ;;
-esac
-
-# xpsuedo magic
-echo "$pass" | $sudo xauth -f /root/.Xauthority add $(xauth list $DISPLAY) \
- && echo "$pass" | $sudo "$@"