- Relocate themes to assets/themes/ and update all references. - Implement custom SDDM theme and Plymouth theme enhancements. - Add themed templates for Alacritty, Hyprland, Waybar, and other apps. - Introduce Makima key remapper module and configuration. - Add Voxtype and Walker configurations. - Implement systemd power management and timeout optimizations. - Add Nautilus-python extensions for LocalSend. - Update branding assets and ASCII art integration.
24 lines
627 B
Bash
Executable File
24 lines
627 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Set a new encryption password for a drive selected.
|
|
|
|
encrypted_drives=$(blkid -t TYPE=crypto_LUKS -o device)
|
|
|
|
if [[ -n $encrypted_drives ]]; then
|
|
if (( $(wc -l <<<encrypted_drives) == 1 )); then
|
|
drive_to_change="$encrypted_drives"
|
|
else
|
|
drive_to_change="$(nnomarchy-drive-select "$encrypted_drives")"
|
|
fi
|
|
|
|
if [[ -n $drive_to_change ]]; then
|
|
echo "Changing full-disk encryption password for $drive_to_change"
|
|
sudo cryptsetup luksChangeKey --pbkdf argon2id --iter-time 2000 "$drive_to_change"
|
|
else
|
|
echo "No drive selected."
|
|
fi
|
|
else
|
|
echo "No encrypted drives available."
|
|
exit 1
|
|
fi
|