feat(update-repo): also add fastfetch config, show status on Update_remote

This commit is contained in:
João Dias
2024-11-17 16:07:57 -03:00
parent 3043242b4c
commit fb57daa33d
2 changed files with 4 additions and 6 deletions
-5
View File
@@ -14,8 +14,3 @@ cursor {
# Set to true if you have issues # Set to true if you have issues
no_hardware_cursors = false no_hardware_cursors = false
} }
render {
# Set to false if you have issues
explicit_sync = true
}
+4 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/bash #!/usr/bin/bash
HYPRLAND_DOTS_DIRS=("hypr" "swaync" "waybar" "anyrun" "wlogout" "wal") HYPRLAND_DOTS_DIRS=("hypr" "swaync" "waybar" "anyrun" "wlogout" "wal" "fastfetch")
WALLPAPERS_DIR="$HOME/wallpapers" WALLPAPERS_DIR="$HOME/wallpapers"
printf "\n" printf "\n"
@@ -69,6 +69,7 @@ Check_existance() {
Update_local() { Update_local() {
for dotsDir in ${HYPRLAND_DOTS_DIRS[@]}; do for dotsDir in ${HYPRLAND_DOTS_DIRS[@]}; do
if [[ -d "$HOME/.config/$dotsDir" ]]; then if [[ -d "$HOME/.config/$dotsDir" ]]; then
echo "-> Trying to copy ${dotsDir^}..."
cp -r $HOME/.config/$dotsDir ./$dotsDir cp -r $HOME/.config/$dotsDir ./$dotsDir
else else
Send_log "warn" "Looks like the ~/.config/$dotsDir dir is in fault! Skipping it..." Send_log "warn" "Looks like the ~/.config/$dotsDir dir is in fault! Skipping it..."
@@ -84,6 +85,8 @@ Update_local() {
} }
Update_remote() { Update_remote() {
echo "Git status:"
/usr/bin/env git status
echo "Please type one of the dotfiles you want to push now(only one dir):" echo "Please type one of the dotfiles you want to push now(only one dir):"
ls --color=auto -d -- */ ls --color=auto -d -- */
printf "Directory: " printf "Directory: "