New snapshot script for Timeshift
This commit is contained in:
parent
69d320a933
commit
4f35c9426f
10
.bashrc
10
.bashrc
@ -22,17 +22,17 @@ alias m='neomutt'
|
||||
alias shutdown='sudo shutdown -h now'
|
||||
alias v='vim'
|
||||
alias r='ranger'
|
||||
alias ts='sudo timeshift --list'
|
||||
alias t='sudo timeshift --list'
|
||||
alias ts='~/dotfiles/scripts/snapshot.sh'
|
||||
|
||||
# SCRIPTS
|
||||
alias gr='python ~/dotfiles/scripts/growthrate.py'
|
||||
alias chat='python ~/mychatgpt/mychatgpt.py'
|
||||
|
||||
# VIRTUAL MACHINE
|
||||
alias vm='~/dotfiles/scripts/launchVM.sh'
|
||||
alias vmstart='virsh --connect qemu:///system start RDPWindows'
|
||||
alias vmstop='virsh --connect qemu:///system destroy RDPWindows'
|
||||
alias win10='xfreerdp /v:Windows10 /size:100% /d: /p:sancho /dynamic-resolution &'
|
||||
alias vm='~/dotfiles/scripts/launchvm.sh'
|
||||
alias vmstart='virsh --connect qemu:///system start win11'
|
||||
alias vmstop='virsh --connect qemu:///system destroy win11'
|
||||
|
||||
# EDIT CONFIG Files
|
||||
alias confq='vim ~/dotfiles/qtile/config.py'
|
||||
|
@ -12,7 +12,7 @@ echo "START INSTALLATION..."
|
||||
# Install required packages
|
||||
# ------------------------------------------------------
|
||||
echo "-> Install main packages"
|
||||
sudo pacman -S alacritty nitrogen picom starship chromium slock neomutt rofi dunst ueberzug mpv freerdp spotifyd xfce4-power-manager python-pip thunar mousepad lxappearance papirus-icon-theme ttf-font-awesome ttf-fira-sans ttf-fira-code ttf-firacode-nerd figlet
|
||||
sudo pacman -S alacritty nitrogen picom starship chromium slock neomutt rofi dunst ueberzug mpv freerdp spotifyd xfce4-power-manager python-pip thunar mousepad lxappearance papirus-icon-theme ttf-font-awesome ttf-fira-sans ttf-fira-code ttf-firacode-nerd figlet cmatrix
|
||||
|
||||
# ------------------------------------------------------
|
||||
# Install required packages
|
||||
|
@ -1,9 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
virsh --connect qemu:///system start RDPWindows
|
||||
echo "Waiting 30 sec for Windows 10 startup..."
|
||||
sleep 30
|
||||
echo "Starting xfreerdp now..."
|
||||
xfreerdp /v:Windows10 /size:100% /d: /p:sancho /dynamic-resolution &
|
||||
|
||||
exit
|
9
scripts/launchvm.sh
Executable file
9
scripts/launchvm.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
virsh --connect qemu:///system start win11
|
||||
echo "Waiting 30 sec for Windows 11 startup..."
|
||||
sleep 30
|
||||
echo "Starting xfreerdp now..."
|
||||
xfreerdp /v:192.168.122.42 /size:100% /d: /p:sancho /dynamic-resolution &
|
||||
|
||||
exit
|
8
scripts/snapshot.sh
Executable file
8
scripts/snapshot.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
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