aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/menublk
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-05-25 23:51:49 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-05-25 23:51:49 +0300
commit762e7c1bf71d73f88fb0f7eccadbedde17898908 (patch)
tree509f2da9ead4375339bd40bba7f13c81da6ba673 /dotfiles/.local/bin/menublk
parentc28510ac087f85738ee2e716b346eb1bbc8baba5 (diff)
downloadswayrice-762e7c1bf71d73f88fb0f7eccadbedde17898908.tar.gz
swayrice-762e7c1bf71d73f88fb0f7eccadbedde17898908.zip
WIP: rofi
Some rofi scripts changes to hide passwords and match by prefix.
Diffstat (limited to 'dotfiles/.local/bin/menublk')
-rwxr-xr-xdotfiles/.local/bin/menublk4
1 files changed, 2 insertions, 2 deletions
diff --git a/dotfiles/.local/bin/menublk b/dotfiles/.local/bin/menublk
index 499fe5d..64d28fd 100755
--- a/dotfiles/.local/bin/menublk
+++ b/dotfiles/.local/bin/menublk
@@ -57,7 +57,7 @@ mount_dev() {
fstype="$(lsblk -r -o FSTYPE "/dev/$1" | tail -n 1)"
part="/dev/$1"
if [ "$fstype" = "crypto_LUKS" ]; then
- password="$(echo "" | rofi -dmenu -p "Enter passphrase for encrypted drive" --tf="$BEMENU_TF" --tb="$BEMENU_NB" --ff="$BEMENU_NB" --fb="$BEMENU_NB" --fn="$BEMENU_FN" --nb="$BEMENU_NB" --nf="$BEMENU_NF" --hf="$BEMENU_HF" --hb="$BEMENU_HB" --monitor="$BEMENU_MONITOR")"
+ password="$(echo "" | rofi -dmenu -password -p "Enter passphrase for encrypted drive" --tf="$BEMENU_TF" --tb="$BEMENU_NB" --ff="$BEMENU_NB" --fb="$BEMENU_NB" --fn="$BEMENU_FN" --nb="$BEMENU_NB" --nf="$BEMENU_NF" --hf="$BEMENU_HF" --hb="$BEMENU_HB" --monitor="$BEMENU_MONITOR")"
if [ -z "$password" ]; then
exit 0
fi
@@ -111,7 +111,7 @@ poweroff_dev() {
fi
}
-action="$(printf "mount\nunmount\npoweroff\n" | rofi -dmenu -p "What to do?" )"
+action="$(printf "mount\nunmount\npoweroff\n" | rofi -dmenu -matching prefix -p "What to do?" )"
case "$action" in
mount)