added existing shell scripts
This commit is contained in:
18
collect-videos
Executable file
18
collect-videos
Executable 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
2
install-vencord
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
sh -c "$(curl -sS https://raw.githubusercontent.com/Vendicated/VencordInstaller/main/install.sh)"
|
||||
2
steam-silent
Executable file
2
steam-silent
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
steam -silent
|
||||
16
toggle-mute
Executable file
16
toggle-mute
Executable 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
2
toggle-window-preview
Executable 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
6
zip-seperate
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
for filename in *.iso; do
|
||||
echo "Zipping file: $filename"
|
||||
gzip "$filename"
|
||||
done
|
||||
Reference in New Issue
Block a user