From 280b499ba9c176bd09ce02cb3af2f52922e7e5db Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Mon, 16 Mar 2026 14:27:51 +0900 Subject: modified bin/ecrypt, modified statusbar/sb-ecrypt --- ar/.local/bin/ecrypt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ar/.local/bin/ecrypt') diff --git a/ar/.local/bin/ecrypt b/ar/.local/bin/ecrypt index 0e189af..0d84081 100755 --- a/ar/.local/bin/ecrypt +++ b/ar/.local/bin/ecrypt @@ -1,7 +1,7 @@ #!/bin/sh mount_encrypted() { - ! mount | grep -q " $1 " && echo "$passphrase" | sudo mount -t ecryptfs "$1" "$2" \ + echo "$passphrase" | sudo mount -t ecryptfs "$1" "$2" \ -o ecryptfs_cipher=aes,ecryptfs_key_bytes=32,ecryptfs_passthrough=no,ecryptfs_enable_filename_crypto=yes,ecryptfs_sig=$ecryptfs_sig,ecryptfs_fnek_sig=$fnek_sig,key=passphrase:passphrase_passwd=$(printf '%s' "$passphrase") } @@ -21,7 +21,10 @@ attempt_mount() { notify-send "❌ Failed to retrieve passphrase." exit 1 } - mount_encrypted "$1" "$2" && notify-send "🔑 Unlocked: $3" && pkill -RTMIN+1 dwmblocks + if mount_encrypted "$1" "$2"; then + notify-send "🔑 Unlocked: $3" + pkill -RTMIN+1 dwmblocks + fi fi } -- cgit v1.2.3