aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.scripts/menublk
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2019-11-16 22:43:49 +0300
committerYaroslav <contact@yaroslavps.com>2019-11-16 22:43:49 +0300
commit6e63a198dc322091c1e55ebdf5e110ea06814fd1 (patch)
treee222e810349b00ffda395a5937711717900e3ed3 /dotfiles/.scripts/menublk
parentfd219d720d260bbb4e8947b9255f8573e9447991 (diff)
downloadswayrice-6e63a198dc322091c1e55ebdf5e110ea06814fd1.tar.gz
swayrice-6e63a198dc322091c1e55ebdf5e110ea06814fd1.zip
bemenu scripts updated for new look
Diffstat (limited to 'dotfiles/.scripts/menublk')
-rwxr-xr-xdotfiles/.scripts/menublk8
1 files changed, 4 insertions, 4 deletions
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