From 6e63a198dc322091c1e55ebdf5e110ea06814fd1 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Sat, 16 Nov 2019 22:43:49 +0300 Subject: bemenu scripts updated for new look --- dotfiles/.scripts/menublk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dotfiles/.scripts/menublk') diff --git a/dotfiles/.scripts/menublk b/dotfiles/.scripts/menublk index f3a6f0b..0ca0607 100755 --- a/dotfiles/.scripts/menublk +++ b/dotfiles/.scripts/menublk @@ -51,7 +51,7 @@ mount_dev() { fstype="$(lsblk -r -o FSTYPE "/dev/$1" | tail -n 1)" part="/dev/$1" if [ "$fstype" = "crypto_LUKS" ]; then - password="$(bemenu -p "Enter passphrase for encrypted drive:" $BEMENU_CREDS_OPTIONS)" + password="$(bemenu -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")" if [ -z "$password" ]; then exit 0 fi @@ -86,17 +86,17 @@ unmount_dev() { fi } -action="$(printf "mount\nunmount\n" | bemenu -p "What to do?" $BEMENU_OPTIONS)" +action="$(printf "mount\nunmount\n" | bemenu -p "What to do?" --tf="$BEMENU_TF" --tb="$BEMENU_NB" --fb="$BEMENU_NB" --fn="$BEMENU_FN" --nb="$BEMENU_NB" --nf="$BEMENU_NF" --hf="$BEMENU_HF" --hb="$BEMENU_HB")" case "$action" in mount) - blkdev="$(get_mountable | bemenu -p "Choose device to mount:" $BEMENU_OPTIONS)" + blkdev="$(get_mountable | bemenu -p "Choose device to mount:" --tf="$BEMENU_TF" --tb="$BEMENU_NB" --fb="$BEMENU_NB" --fn="$BEMENU_FN" --nb="$BEMENU_NB" --nf="$BEMENU_NF" --hf="$BEMENU_HF" --hb="$BEMENU_HB")" if [ -z "$blkdev" ]; then exit 0 fi mount_dev "$blkdev";; unmount) - blkdev="$(get_unmountable | bemenu -p "Choose device to umount:" $BEMENU_OPTIONS)" + blkdev="$(get_unmountable | bemenu -p "Choose device to umount:" --tf="$BEMENU_TF" --tb="$BEMENU_NB" --fb="$BEMENU_NB" --fn="$BEMENU_FN" --nb="$BEMENU_NB" --nf="$BEMENU_NF" --hf="$BEMENU_HF" --hb="$BEMENU_HB")" if [ -z "$blkdev" ]; then exit 0 fi -- cgit v1.2.3