diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-05-07 13:43:55 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-05-07 13:43:55 +0300 |
commit | c68076715cebb87c1a4b0dad842ca9574d3d3d73 (patch) | |
tree | b1bed5c1d88336ddab7435fc4f289e906d6c50a7 /dotfiles | |
parent | 0678519d74f5a65a2286f453b102d6561b2840de (diff) | |
download | swayrice-c68076715cebb87c1a4b0dad842ca9574d3d3d73.tar.gz swayrice-c68076715cebb87c1a4b0dad842ca9574d3d3d73.zip |
bemenu won't work unless it's passed something through stdin
Diffstat (limited to 'dotfiles')
-rwxr-xr-x | dotfiles/.local/bin/menublk | 2 |
1 files changed, 1 insertions, 1 deletions
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 |