🔧 chore(scripts, install): add support for the new build system, improvements

This commit is contained in:
retrozinndev
2025-08-16 12:20:01 -03:00
parent 116753063c
commit b999ba4d48
3 changed files with 40 additions and 55 deletions
+9 -1
View File
@@ -1,7 +1,15 @@
#!/usr/bin/bash
source ./utils.sh
source ./scripts/utils.sh
config_dirs=(
"hypr/scripts"
"hypr/shell"
"hypr/hyprlock.conf"
"hypr/hyprland.conf"
"hypr/hypridle.conf"
"kitty/kitty.conf"
)
outdir="./config"
Clean_local() {
+54
View File
@@ -0,0 +1,54 @@
#!/usr/bin/env bash
# This script contains useful functions to be used
# in other scripts from retrozindev's dotfiles.
# ----------
# Made by retrozinndev (João Dias)
# Licensed under the MIT License
# From: https://github.com/retrozinndev/colorshell
# -------------
# Sends stdout log with type and message provided
# in parameters.
# param $1 (optional) log type (err[or], warn[ing]), if not any of list, print as info
# param $2 log message
# -------------
function Send_log() {
log_message=$2
case ${1,,} in
"^warn(ing)$")
color="\e[33m"
log_type="warning"
;;
"^err(or)$")
color="\e[31m"
log_type="error"
;;
*)
color="\e[34m"
log_type="info"
;;
esac
if [[ -z $2 ]]; then
log_message=$1
fi
echo -e "${color}[$log_type]\e[0m $log_message"
}
# -------------
# Prints retrozinndev/colorshell installation
# script's welcome header on stdout
# -------------
function Print_header() {
printf "\n"
echo "#############################"
echo "## Colorshell Installation ##"
echo "#############################"
printf "\n"
}