Updates
This commit is contained in:
parent
c848d51c02
commit
253e228899
|
@ -335,6 +335,15 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# ------------------------------------------------------
|
||||||
|
# Install snapshot file
|
||||||
|
# ------------------------------------------------------
|
||||||
|
if [ -f ~/snapshot.sh ]; then
|
||||||
|
echo "snapshot.sh exists"
|
||||||
|
else
|
||||||
|
cp ~/dotfiles/scripts/snapshot.sh ~/
|
||||||
|
fi
|
||||||
|
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
# Init pywal
|
# Init pywal
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
|
|
16
scripts/snapshot.sh
Executable file
16
scripts/snapshot.sh
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# ____ _ _
|
||||||
|
# / ___| _ __ __ _ _ __ ___| |__ ___ | |_
|
||||||
|
# \___ \| '_ \ / _` | '_ \/ __| '_ \ / _ \| __|
|
||||||
|
# ___) | | | | (_| | |_) \__ \ | | | (_) | |_
|
||||||
|
# |____/|_| |_|\__,_| .__/|___/_| |_|\___/ \__|
|
||||||
|
# |_|
|
||||||
|
#
|
||||||
|
# by Stephan Raabe (2023)
|
||||||
|
# -----------------------------------------------------
|
||||||
|
|
||||||
|
read -p "Enter a comment for the snapshot: " c
|
||||||
|
sudo timeshift --create --comments "$c"
|
||||||
|
sudo timeshift --list
|
||||||
|
sudo grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
echo "DONE. Snapshot $c created!"
|
Loading…
Reference in New Issue
Block a user