improved dmenupass, added file explanation to dmenumount
This commit is contained in:
parent
34c9a7d89e
commit
97ebd1624a
@ -5,6 +5,9 @@
|
|||||||
# be prompted to give a mountpoint from already existsing directories. If you
|
# be prompted to give a mountpoint from already existsing directories. If you
|
||||||
# input a novel directory, it will prompt you to create that directory.
|
# 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"
|
UUID_TO_PWD="$XDG_CONFIG_HOME/mount/list"
|
||||||
|
|
||||||
getmount() { \
|
getmount() { \
|
||||||
|
@ -3,4 +3,9 @@
|
|||||||
# This script is the SUDO_ASKPASS variable, meaning that it will be used as a
|
# This script is the SUDO_ASKPASS variable, meaning that it will be used as a
|
||||||
# password prompt if needed.
|
# 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" <&-
|
||||||
|
Loading…
Reference in New Issue
Block a user