added existing shell scripts

This commit is contained in:
2026-01-25 00:31:36 +01:00
parent da393deb38
commit bc6295830d
8 changed files with 49 additions and 0 deletions

1
OmniSharp Symbolic link
View File

@@ -0,0 +1 @@
/usr/bin/omnisharp

18
collect-videos Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
src_user="gabi"
src_dir="/home/$src_user"
dest_user="tikaiz"
dest_dir="/home/$dest_user/Videos"
file_ext=".mkv"
echo "collecting files with extension $file_ext from $src_dir to $dest_dir"
echo "Running with sudo"
sudo -k
sudo find "$src_dir" -maxdepth 1 -type f -name "*$file_ext" -not -name '.*' -execdir sh -c '
echo "processing file: $1"
mv "$1" "$2"
' sh '{}' "$dest_dir" ';'
if [ $? -eq 0 ]; then
echo "successfully collected files!"
else
echo "error while collecting files!"
fi

2
install-vencord Executable file
View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
sh -c "$(curl -sS https://raw.githubusercontent.com/Vendicated/VencordInstaller/main/install.sh)"

2
off Executable file
View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
systemctl poweroff

2
steam-silent Executable file
View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
steam -silent

16
toggle-mute Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
is_muted=$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@ | grep "[MUTED]" | wc -l)
echo $is_muted
INITTY=/dev/tty[1-6] # needed for setting capslock
if [ "$is_muted" -eq "1" ]; then
# Reset Caps-Lock
for tty in $INITTY; do setleds -L -caps < $tty; done
for tty in $INITTY; do setleds -L +caps < $tty; done
echo "Is muted"
else
# Turn off Caps-Lock
for tty in $INITTY; do setleds -L -caps < $tty; done
echo "Isn't muted"
fi

2
toggle-window-preview Executable file
View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
ydotool key 125:1 29:1 20:1 125:0 29:0 20:0

6
zip-seperate Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
for filename in *.iso; do
echo "Zipping file: $filename"
gzip "$filename"
done