MAJOR CLEANUP: with manager scirpt to replace everything
This commit is contained in:
16
scripts/MkvToMp4.bash
Executable file
16
scripts/MkvToMp4.bash
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Check if exactly one argument was provided
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "Usage: $0 <argument>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Assign the argument to a variable for better readability
|
||||
ARGUMENT="$1"
|
||||
#
|
||||
# Remove the last 3 characters (.txt) and append .md instead
|
||||
NEW_FILENAME="${ARGUMENT%.mkv}.mp4"
|
||||
|
||||
# Insert your long command here, using $ARGUMENT where the user's input is needed
|
||||
ffmpeg -i "$ARGUMENT" -vcodec copy -acodec copy "${NEW_FILENAME}"
|
||||
4
scripts/ReplaceNvChad.bash
Executable file
4
scripts/ReplaceNvChad.bash
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm -r ~/.config/nvim/lua/custom/*
|
||||
cp -r ../nvchad/* ~/.config/nvim/lua/custom
|
||||
8
scripts/Rsync.bash
Normal file
8
scripts/Rsync.bash
Normal file
@@ -0,0 +1,8 @@
|
||||
pushd ~
|
||||
|
||||
directories=("Videos" "Documents" "Pictures")
|
||||
for dir in "${directories[@]}"; do
|
||||
rsync -avH "./$dir" zh3586@zh3586.rsync.net:"$dir"
|
||||
done
|
||||
|
||||
popd
|
||||
5
scripts/SyncNvChad.bash
Executable file
5
scripts/SyncNvChad.bash
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm -r ../nvchad
|
||||
mkdir ../nvchad
|
||||
cp -r ~/.config/nvim/lua/* ../nvchad
|
||||
13
scripts/manager.bash
Normal file
13
scripts/manager.bash
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
folders=("hypr" "ags" "tmux" "lazygit" "kitty" "fish")
|
||||
|
||||
cd ..
|
||||
|
||||
for folder in ${folders[@]}; do
|
||||
echo Moving $folder
|
||||
rsync -a ./$folder/ ~/.config/$folder
|
||||
done
|
||||
|
||||
# Starship
|
||||
mv starship.toml ~/.config/starship.toml
|
||||
Reference in New Issue
Block a user