improved dmenupass, added file explanation to dmenumount

This commit is contained in:
Alexander Bocken 2022-04-12 10:42:48 +02:00
parent 34c9a7d89e
commit 97ebd1624a
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8
2 changed files with 9 additions and 1 deletions

View File

@ -5,6 +5,9 @@
# be prompted to give a mountpoint from already existsing directories. If you
# input a novel directory, it will prompt you to create that directory.
#File should have two fields: uuid and password location in pass
#The file is tab-seperated
#UUIDs can be found via `lsblk -rpo "name,size,uuid"`
UUID_TO_PWD="$XDG_CONFIG_HOME/mount/list"
getmount() { \

View File

@ -3,4 +3,9 @@
# This script is the SUDO_ASKPASS variable, meaning that it will be used as a
# password prompt if needed.
dmenu -fn Monospace-18 -P -p "$1" <&- && echo
if [ "$1" = "--display" ] || [ -z "$1" ]; then
prompt=Password:
else
prompt="$1"
fi
dmenu -P -p "$prompt" <&-