From c68076715cebb87c1a4b0dad842ca9574d3d3d73 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Thu, 7 May 2020 13:43:55 +0300 Subject: bemenu won't work unless it's passed something through stdin --- dotfiles/.local/bin/menublk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dotfiles/.local/bin/menublk') diff --git a/dotfiles/.local/bin/menublk b/dotfiles/.local/bin/menublk index 26cfc55..3020422 100755 --- a/dotfiles/.local/bin/menublk +++ b/dotfiles/.local/bin/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:" --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")" + password="$(echo "" | 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 -- cgit v1.2.3