aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-05-07 13:43:55 +0300
committerYaroslav <contact@yaroslavps.com>2020-05-07 13:43:55 +0300
commitc68076715cebb87c1a4b0dad842ca9574d3d3d73 (patch)
treeb1bed5c1d88336ddab7435fc4f289e906d6c50a7 /dotfiles/.local/bin
parent0678519d74f5a65a2286f453b102d6561b2840de (diff)
downloadswayrice-c68076715cebb87c1a4b0dad842ca9574d3d3d73.tar.gz
swayrice-c68076715cebb87c1a4b0dad842ca9574d3d3d73.zip
bemenu won't work unless it's passed something through stdin
Diffstat (limited to 'dotfiles/.local/bin')
-rwxr-xr-xdotfiles/.local/bin/menublk2
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