diff --git a/.bashrc b/.bashrc index 635d971..a8a9297 100644 --- a/.bashrc +++ b/.bashrc @@ -48,6 +48,7 @@ alias gpf="git stash; git pull" # SCRIPTS alias gr='python ~/dotfiles/scripts/growthrate.py' alias chat='python ~/mychatgpt/mychatgpt.py' +alias ascii='~/dotfiles/scripts/figlet.sh' # VIRTUAL MACHINE # alias vm='~/dotfiles/scripts/launchvm.sh' diff --git a/scripts/checkplatform.sh b/scripts/checkplatform.sh index b5e30d9..43b299c 100755 --- a/scripts/checkplatform.sh +++ b/scripts/checkplatform.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # ____ _ _ __ # | _ \| | __ _| |_ / _| ___ _ __ _ __ ___ # | |_) | |/ _` | __| |_ / _ \| '__| '_ ` _ \ @@ -6,6 +6,9 @@ # |_| |_|\__,_|\__|_| \___/|_| |_| |_| |_| # # by Stephan Raabe (2023) +# ----------------------------------------------------- # 3 = Desktop # 10 = Laptop +# ----------------------------------------------------- + cat /sys/class/dmi/id/chassis_type diff --git a/scripts/checkupdates.sh b/scripts/checkupdates.sh index 835ca05..d6ceeba 100755 --- a/scripts/checkupdates.sh +++ b/scripts/checkupdates.sh @@ -1,4 +1,13 @@ -#!/bin/sh +#!/bin/bash +# _ _ _ _ +# | | | |_ __ __| | __ _| |_ ___ ___ +# | | | | '_ \ / _` |/ _` | __/ _ \/ __| +# | |_| | |_) | (_| | (_| | || __/\__ \ +# \___/| .__/ \__,_|\__,_|\__\___||___/ +# |_| +# +# by Stephan Raabe (2023) +# ----------------------------------------------------- format() { if [ "$1" -eq 0 ]; then diff --git a/scripts/cu.sh b/scripts/cu.sh index d9d894f..602bbf5 100755 --- a/scripts/cu.sh +++ b/scripts/cu.sh @@ -1,5 +1,14 @@ #!/bin/bash - +# _ _ _ _ +# | | | |_ __ __| | __ _| |_ ___ ___ +# | | | | '_ \ / _` |/ _` | __/ _ \/ __| +# | |_| | |_) | (_| | (_| | || __/\__ \ +# \___/| .__/ \__,_|\__,_|\__\___||___/ +# |_| +# +# by Stephan Raabe (2023) +# ----------------------------------------------------- + pacmanUpdates=$(pacman -Syup | grep http:// | wc -l) aurUpdates=$(yaourt -Qua | grep aur | wc -l) diff --git a/scripts/fontsearch.sh b/scripts/fontsearch.sh index 8b4a480..504e650 100755 --- a/scripts/fontsearch.sh +++ b/scripts/fontsearch.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # _____ _ _ # | ___|__ _ __ | |_ ___ ___ __ _ _ __ ___| |__ # | |_ / _ \| '_ \| __/ __|/ _ \/ _` | '__/ __| '_ \ @@ -6,6 +6,7 @@ # |_| \___/|_| |_|\__|___/\___|\__,_|_| \___|_| |_| # # by Stephan Raabe (2023) +# ----------------------------------------------------- # fc-list \ | grep -ioE ": [^:]*$1[^:]+:" \ diff --git a/scripts/launchvm.sh b/scripts/launchvm.sh index 6dc1388..913a0d6 100755 --- a/scripts/launchvm.sh +++ b/scripts/launchvm.sh @@ -1,4 +1,13 @@ #!/bin/bash +# _ _ __ ____ __ +# | | __ _ _ _ _ __ ___| |__ \ \ / / \/ | +# | | / _` | | | | '_ \ / __| '_ \ \ \ / /| |\/| | +# | |__| (_| | |_| | | | | (__| | | | \ V / | | | | +# |_____\__,_|\__,_|_| |_|\___|_| |_| \_/ |_| |_| +# +# +# by Stephan Raabe (2023) +# ----------------------------------------------------- function countdown { diff --git a/scripts/looking-glass.sh b/scripts/looking-glass.sh index 1400b72..63b9b4a 100755 --- a/scripts/looking-glass.sh +++ b/scripts/looking-glass.sh @@ -1,4 +1,13 @@ #!/bin/bash +# _ _ _ ____ _ +# | | ___ ___ | | _(_)_ __ __ _ / ___| | __ _ ___ ___ +# | | / _ \ / _ \| |/ / | '_ \ / _` | | | _| |/ _` / __/ __| +# | |__| (_) | (_) | <| | | | | (_| | | |_| | | (_| \__ \__ \ +# |_____\___/ \___/|_|\_\_|_| |_|\__, | \____|_|\__,_|___/___/ +# |___/ +# +# by Stephan Raabe (2023) +# ----------------------------------------------------- virsh --connect qemu:///system start win11 looking-glass-client & diff --git a/scripts/snapshot.sh b/scripts/snapshot.sh index 81e07a4..3996bff 100755 --- a/scripts/snapshot.sh +++ b/scripts/snapshot.sh @@ -1,8 +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!" - diff --git a/scripts/snapshots.py b/scripts/snapshots.py deleted file mode 100644 index f4d9bd9..0000000 --- a/scripts/snapshots.py +++ /dev/null @@ -1,10 +0,0 @@ -import os -import subprocess - -os.chdir("/home/raabe") -# os.system("ls") - -# process = subprocess.run(["ls", "-al"], stdout=subprocess.PIPE, universal_newlines=True) -process = subprocess.run(["ls", "-al"], stdout=subprocess.PIPE) -# print(process.stdout) - diff --git a/scripts/updatewal.sh b/scripts/updatewal.sh index 46b490b..6fc0547 100755 --- a/scripts/updatewal.sh +++ b/scripts/updatewal.sh @@ -1,4 +1,13 @@ -# ~/.bashrc +#!/bin/bash +# ____ _ _____ _ +# / ___| |__ __ _ _ __ __ _ ___ |_ _| |__ ___ _ __ ___ ___ +# | | | '_ \ / _` | '_ \ / _` |/ _ \ | | | '_ \ / _ \ '_ ` _ \ / _ \ +# | |___| | | | (_| | | | | (_| | __/ | | | | | | __/ | | | | | __/ +# \____|_| |_|\__,_|_| |_|\__, |\___| |_| |_| |_|\___|_| |_| |_|\___| +# |___/ +# +# by Stephan Raabe (2023) +# ----------------------------------------------------- echo "Changing theme..." # Update Wallpaper with pywal