2024-09-22 18:39:48 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2025-01-20 02:06:36 +03:00
|
|
|
function install_config() {
|
2025-02-16 17:43:56 +03:00
|
|
|
for config in "${@:2}"; do
|
2025-02-12 23:16:13 +03:00
|
|
|
cp -vr "./${config}" "$1"
|
2025-01-20 02:06:36 +03:00
|
|
|
done
|
|
|
|
}
|
2024-10-02 23:49:16 +03:00
|
|
|
|
2025-01-20 02:06:36 +03:00
|
|
|
green="\e[92m"
|
|
|
|
dgreen="\e[32m"
|
|
|
|
end="\e[0m"
|
2024-09-22 18:34:44 +03:00
|
|
|
|
2025-02-16 01:08:56 +03:00
|
|
|
general_configs=("betterlockscreen" "btop" "picom" "zathura" "rofi" "yazi" "dunst" "mimeapps.list" "starship.toml")
|
2025-01-20 02:06:36 +03:00
|
|
|
home_dir_configs=(".bg" ".zshrc" ".zsh")
|
|
|
|
|
|
|
|
echo -e "${green}
|
|
|
|
_ __ _ ____ _
|
|
|
|
| | / /___ (_)___/ / / (_)___ __ ___ __
|
|
|
|
| | / / __ \/ / __ / / / / __ \/ / / / |/_/
|
|
|
|
| |/ / /_/ / / /_/ / /___/ / / / / /_/ /> <
|
|
|
|
|___/\____/_/\__,_/_____/_/_/ /_/\__,_/_/|_|${end}${dgreen}
|
|
|
|
____ __ _____ __
|
|
|
|
/ __ \____ / /_/ __(_) /__ _____
|
|
|
|
/ / / / __ \/ __/ /_/ / / _ \/ ___/
|
|
|
|
/ /_/ / /_/ / /_/ __/ / / __(__ )
|
|
|
|
/_____/\____/\__/_/ /_/_/\___/____/${end}
|
|
|
|
"
|
|
|
|
|
|
|
|
echo "Select your device type (Laptop: L/l, PC: P/p)"
|
2025-02-16 17:43:56 +03:00
|
|
|
read -r type
|
2025-01-20 02:06:36 +03:00
|
|
|
|
|
|
|
case "${type}" in
|
|
|
|
"L" | "l")
|
2025-02-12 23:16:13 +03:00
|
|
|
cp -vrf ./Laptop/* ~/.config/
|
2025-01-20 02:06:36 +03:00
|
|
|
;;
|
|
|
|
"P" | "p")
|
2025-02-12 23:16:13 +03:00
|
|
|
cp -vrf ./PC/* ~/.config/
|
2025-01-20 02:06:36 +03:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Please, select your device type correctly"
|
2025-02-12 23:16:13 +03:00
|
|
|
exit 1
|
2025-01-20 02:06:36 +03:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2025-02-16 17:43:56 +03:00
|
|
|
install_config ~/.config/ "${general_configs[@]}"
|
|
|
|
install_config ~/ "${home_dir_configs[@]}"
|
2025-01-20 02:06:36 +03:00
|
|
|
|
|
|
|
betterlockscreen -u ~/.bg/bg_5.png --fx blur --blur 1
|
|
|
|
|
2025-02-16 01:08:56 +03:00
|
|
|
echo "Do you want install bspwm_session, X11, fonts and acpid (for laptop) configs? (y/N):"
|
2025-02-16 17:43:56 +03:00
|
|
|
read -r advanced_install
|
2025-01-20 02:06:36 +03:00
|
|
|
|
|
|
|
case "${advanced_install}" in
|
|
|
|
"Y" | "y")
|
2025-02-16 17:43:56 +03:00
|
|
|
su --shell /bin/bash -c "
|
|
|
|
cp -vrf ./bspwm_session/* /usr/share/xsessions
|
|
|
|
cp -vrf ./root_configs/fonts /etc
|
|
|
|
mkdir -p /etc/X11/xorg.conf.d
|
|
|
|
cp -vf ./root_configs/xorg.conf.d/00-keyboard.conf /etc/X11/xorg.conf.d/
|
|
|
|
if [[ \"$type\" = \"L\" || \"$type\" = \"l\" ]] ; then
|
|
|
|
cp -vfr ./root_configs/acpi /etc
|
|
|
|
cp -vf ./root_configs/xorg.conf.d/70-synaptics.conf /etc/X11/xorg.conf.d/
|
|
|
|
fi
|
|
|
|
"
|
2025-01-20 02:06:36 +03:00
|
|
|
;;
|
2025-02-12 23:24:54 +03:00
|
|
|
"N" | "n" | "*")
|
2025-01-20 02:06:36 +03:00
|
|
|
echo "Skip"
|
|
|
|
;;
|
|
|
|
esac
|
2025-02-16 17:43:56 +03:00
|
|
|
|
|
|
|
echo "Installation is complete, have a fun!"
|