aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-06-18 21:17:13 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-06-18 21:17:13 +0300
commite1bd96fb8858546f781a40678145cf5986d83aa0 (patch)
treeb7e1d2012051d1b91d40a460e224427f09ee3d58 /dotfiles
parent4a50101176ee69a08a47f8a912505dc0af310b62 (diff)
downloadswayrice-e1bd96fb8858546f781a40678145cf5986d83aa0.tar.gz
swayrice-e1bd96fb8858546f781a40678145cf5986d83aa0.zip
fix: menublk: fs type check
Silly me, forgot placeholder for udevadm command.
Diffstat (limited to 'dotfiles')
-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 ec5bca5..5f3be68 100755
--- a/dotfiles/.local/bin/menublk
+++ b/dotfiles/.local/bin/menublk
@@ -54,8 +54,8 @@ get_unmountable() {
}
mount_dev() {
- fstype="$(udevadm info -x /dev/sdd1 | grep FS_TYPE | cut -d '=' -f2)"
part="/dev/$1"
+ fstype="$(udevadm info -x $part | grep FS_TYPE | cut -d '=' -f2)"
if [ "$fstype" = "crypto_LUKS" ]; then
password="$(echo "" | rofi -dmenu -password -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" --monitor="$BEMENU_MONITOR")"
if [ -z "$password" ]; then