diff --git a/.bashrc b/.bashrc index 2bcb3cc..9d75610 100644 --- a/.bashrc +++ b/.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' diff --git a/1-install.sh b/1-install.sh index 5c678fe..6f77e55 100755 --- a/1-install.sh +++ b/1-install.sh @@ -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 diff --git a/scripts/launchVM.sh b/scripts/launchVM.sh deleted file mode 100755 index 928d268..0000000 --- a/scripts/launchVM.sh +++ /dev/null @@ -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 diff --git a/scripts/launchvm.sh b/scripts/launchvm.sh new file mode 100755 index 0000000..0cec49f --- /dev/null +++ b/scripts/launchvm.sh @@ -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 diff --git a/scripts/snapshot.sh b/scripts/snapshot.sh new file mode 100755 index 0000000..81e07a4 --- /dev/null +++ b/scripts/snapshot.sh @@ -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!" +