delete files and change install-arch
This commit is contained in:
1 parent
cbafd19664
commit
c2e614e80d
5 files changed
+129
-372
No files matched your search
+129
-105
@@ -1,13 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# ---- colors ----
|
|
||||||
RESET='\033[0m'
|
RESET='\033[0m'
|
||||||
GREEN='\033[0;32m'
|
GREEN='\033[0;32m'
|
||||||
YELLOW='\033[0;33m'
|
YELLOW='\033[0;33m'
|
||||||
RED='\033[0;31m'
|
RED='\033[0;31m'
|
||||||
# ----------------
|
|
||||||
|
|
||||||
# ----- variables ----
|
|
||||||
disk="/dev/sda"
|
disk="/dev/sda"
|
||||||
efi_part_size=500
|
efi_part_size=500
|
||||||
swap_size=8192
|
swap_size=8192
|
||||||
@@ -15,127 +11,155 @@ hostname="arch"
|
|||||||
normal_user="tola"
|
normal_user="tola"
|
||||||
rootfstype="ext4"
|
rootfstype="ext4"
|
||||||
answer=n
|
answer=n
|
||||||
# -------------------
|
|
||||||
|
|
||||||
# -------------- cheking system -----------------
|
check_system() {
|
||||||
printf "$YELLOW ::$GREEN Cheking system$RESET "
|
printf "$YELLOW ::$GREEN Cheking system$RESET "
|
||||||
if [[ $(uname) != "Linux" ]]; then
|
if [[ $(uname) != "Linux" ]]; then
|
||||||
printf "$RED This is working only on Linux systems (only Arch Linux)\n$RESET"
|
printf "$RED This is working only on Linux systems (only Arch Linux)\n$RESET"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
printf "[$GREEN OK $RESET]\n"
|
printf "[$GREEN OK $RESET]\n"
|
||||||
# ----------------------------------------------
|
}
|
||||||
|
|
||||||
# ---------- cheking root ----------------------
|
check_root() {
|
||||||
printf "$YELLOW ::$GREEN Cheking permissions$RESET "
|
printf "$YELLOW ::$GREEN Cheking permissions$RESET "
|
||||||
if [[ "$(id -u)" != "0" ]]; then
|
if [[ "$(id -u)" != "0" ]]; then
|
||||||
printf "$RED ERROR:$RESET You must be root\n"
|
printf "$RED ERROR:$RESET You must be root\n"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
printf "[$GREEN OK $RESET]\n"
|
printf "[$GREEN OK $RESET]\n"
|
||||||
# ---------------------------------------------
|
}
|
||||||
|
|
||||||
# --------------- cheking disk ---------------
|
check_disk() {
|
||||||
printf "$YELLOW Your disk is $disk?$RESET ($(echo $GREEN)y$RESET/$(echo $RED)n$RESET): "
|
printf "$YELLOW Your disk is $disk?$RESET ($(echo $GREEN)y$RESET/$(echo $RED)n$RESET): "
|
||||||
read answer
|
read answer
|
||||||
if [[ "$answer" != "y" ]];then
|
if [[ "$answer" != "y" ]];then
|
||||||
printf "$RED ERROR:$RESET Please Write your disk name in this script.\n"
|
printf "$RED ERROR:$RESET Please Write your disk name in this script.\n"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# -------------------------------------------
|
}
|
||||||
|
|
||||||
# ---- umounting disks ----
|
partitioning_disk() {
|
||||||
umount ${disk}*
|
umount ${disk}*
|
||||||
# -------------------------
|
wipefs -af $disk
|
||||||
|
printf "g\nn\n1\n2048\n$((($efi_part_size+1)*2048))\nn\n2\n$(((($efi_part_size+1)*2048)+2048))\n$(((($efi_part_size+1)*2048)+4096))\nn\n3\n$(((($efi_part_size+1)*2048)+6144))\n$((((($efi_part_size+1)*2048)+6144)+($swap_size*2048)))\nn\n4\n\n\nt\n1\nEFI System\nt\n2\nBIOS boot\nt\n3\nLinux swap\nt\n4\nLinux filesystem\nw\n" | fdisk $disk
|
||||||
|
}
|
||||||
|
|
||||||
# --------- partitioning disks -------------------
|
formatting_partitions() {
|
||||||
wipefs -af $disk
|
mkfs.vfat -F 32 ${disk}1
|
||||||
|
mkswap ${disk}3
|
||||||
|
[ "$rootfstype" == "ext4" ] && mkfs.ext4 ${disk}4
|
||||||
|
[ "$rootfstype" == "btrfs" ] && mkfs.btrfs -L arch -f ${disk}4
|
||||||
|
}
|
||||||
|
|
||||||
printf "g\nn\n1\n2048\n$((($efi_part_size+1)*2048))\nn\n2\n$(((($efi_part_size+1)*2048)+2048))\n$(((($efi_part_size+1)*2048)+4096))\nn\n3\n$(((($efi_part_size+1)*2048)+6144))\n$((((($efi_part_size+1)*2048)+6144)+($swap_size*2048)))\nn\n4\n\n\nt\n1\nEFI System\nt\n2\nBIOS boot\nt\n3\nLinux swap\nt\n4\nLinux filesystem\nw\n" | fdisk $disk
|
mount_partitions() {
|
||||||
# ------------------------------------------------
|
mount ${disk}4 /mnt
|
||||||
|
mkdir -p /mnt/boot/EFI
|
||||||
|
mount ${disk}1 /mnt/boot/EFI
|
||||||
|
swapon ${disk}3
|
||||||
|
}
|
||||||
|
|
||||||
# --------------- formatting partitions -----------
|
install_base_system() {
|
||||||
mkfs.vfat -F 32 ${disk}1
|
printf "$YELLOW ::$GREEN Installing the system$RESET\n"
|
||||||
mkswap ${disk}3
|
pacstrap /mnt base base-devel linux linux-firmware vim
|
||||||
[ "$rootfstype" == "ext4" ] && mkfs.ext4 ${disk}4
|
}
|
||||||
[ "$rootfstype" == "btrfs" ] && mkfs.btrfs -L arch -f ${disk}4
|
|
||||||
# -------------------------------------------------
|
|
||||||
|
|
||||||
# ----------- mounting partitions -----------------
|
configure_fstab() {
|
||||||
mount ${disk}4 /mnt
|
printf "$YELLOW ::$GREEN Geerating fstab$RESET\n"
|
||||||
mkdir -p /mnt/boot/EFI
|
genfstab -U /mnt > /mnt/etc/fstab
|
||||||
mount ${disk}1 /mnt/boot/EFI
|
}
|
||||||
swapon ${disk}3
|
|
||||||
# -------------------------------------------------
|
|
||||||
|
|
||||||
# ------------ installing the system --------------
|
configure_timezone() {
|
||||||
printf "$YELLOW ::$GREEN Installing the system$RESET\n"
|
printf "$YELLOW ::$GREEN Installing timezone$RESET\n"
|
||||||
pacstrap /mnt base base-devel linux linux-firmware vim
|
arch-chroot /mnt bash -c 'ln -svf /usr/share/zoneinfo/Asia/Novosibirsk /etc/localtime'
|
||||||
# -------------------------------------------------
|
}
|
||||||
|
|
||||||
# ---------------- system configuration --------------------
|
configure_system_clock() {
|
||||||
printf "$YELLOW ::$GREEN System configuration$RESET\n"
|
printf "$YELLOW ::$GREEN Configuring system clock$RESET\n"
|
||||||
# ----- generating fstab -------------------
|
arch-chroot /mnt bash -c 'hwclock --systohc --utc'
|
||||||
printf "$YELLOW ::$GREEN Geerating fstab$RESET\n"
|
}
|
||||||
genfstab -U /mnt > /mnt/etc/fstab
|
|
||||||
# ------------------------------------------
|
|
||||||
|
|
||||||
# ----- installing timezone ----------------
|
configure_locale() {
|
||||||
printf "$YELLOW ::$GREEN Installing timezone$RESET\n"
|
printf "$YELLOW ::$GREEN Installing locale$RESET\n"
|
||||||
arch-chroot /mnt bash -c 'ln -svf /usr/share/zoneinfo/Asia/Novosibirsk /etc/localtime'
|
arch-chroot /mnt bash -c 'printf "en_US.UTF-8 UTF-8\nru_RU.UTF-8 UTF-8" >> /etc/locale.gen;locale-gen'
|
||||||
# ------------------------------------------
|
arch-chroot /mnt bash -c 'printf "LC_ALL=en_US.UTF-8\nLANG=en_US.UTF-8" > /etc/locale.conf'
|
||||||
|
}
|
||||||
|
|
||||||
# ------ configuring system clock ---------------
|
configure_console() {
|
||||||
printf "$YELLOW ::$GREEN Configuring system clock$RESET\n"
|
printf "$YELLOW ::$GREEN Configuring console$RESET\n"
|
||||||
arch-chroot /mnt bash -c 'hwclock --systohc --utc'
|
arch-chroot /mnt bash -c 'printf "FONT=Lat2-Terminus16\nKEYMAP=ruwin_alt_sh-UTF-8" > /etc/vconsole.conf'
|
||||||
# -----------------------------------------------
|
}
|
||||||
|
|
||||||
# ------- installing locale ------------------
|
configure_networking() {
|
||||||
printf "$YELLOW ::$GREEN Installing locale$RESET\n"
|
printf "$YELLOW ::$GREEN Installing hostname and hosts$RESET\n"
|
||||||
arch-chroot /mnt bash -c 'printf "en_US.UTF-8 UTF-8\nru_RU.UTF-8 UTF-8" >> /etc/locale.gen;locale-gen'
|
arch-chroot /mnt /usr/bin/env -i hostname=$hostname bash -c 'echo $hostname > /etc/hostname'
|
||||||
arch-chroot /mnt bash -c 'printf "LC_ALL=en_US.UTF-8\nLANG=en_US.UTF-8" > /etc/locale.conf'
|
arch-chroot /mnt /usr/bin/env -i hostname=$hostname bash -c 'printf "127.0.0.1 localhost\n::1 localhost\n127.0.1.1 ${hostname}.localdomain ${hostname}" >> /etc/hosts'
|
||||||
# --------------------------------------------
|
}
|
||||||
|
|
||||||
# -------- configuring console ----------------------
|
configure_users() {
|
||||||
printf "$YELLOW ::$GREEN Configuring console$RESET\n"
|
printf "$YELLOW ::$GREEN Installing root password and normal user$RESET\n"
|
||||||
arch-chroot /mnt bash -c 'printf "FONT=Lat2-Terminus16\nKEYMAP=ruwin_alt_sh-UTF-8" > /etc/vconsole.conf'
|
arch-chroot /mnt /usr/bin/env -i arch_user=$normal_user bash -c 'passwd;useradd -m -g users -G wheel -s /bin/bash $arch_user;passwd $arch_user'
|
||||||
# ---------------------------------------------------
|
}
|
||||||
|
|
||||||
# ----- configuring networking hostname and hosts -------
|
configure_sudo() {
|
||||||
printf "$YELLOW ::$GREEN Installing hostname and hosts$RESET\n"
|
printf "$YELLOW ::$GREEN Installing and configuring sudo$RESET\n"
|
||||||
arch-chroot /mnt /usr/bin/env -i hostname=$hostname bash -c 'echo $hostname > /etc/hostname'
|
arch-chroot /mnt bash -c 'pacman -S sudo;echo "%wheel ALL=(ALL:ALL) ALL" >> /etc/sudoers'
|
||||||
arch-chroot /mnt /usr/bin/env -i hostname=$hostname bash -c 'printf "127.0.0.1 localhost\n::1 localhost\n127.0.1.1 ${hostname}.localdomain ${hostname}" >> /etc/hosts'
|
}
|
||||||
# -------------------------------------------------------
|
|
||||||
|
|
||||||
# ----- installing root password and normal user -----------------------
|
configure_grub() {
|
||||||
printf "$YELLOW ::$GREEN Installing root password and normal user$RESET\n"
|
printf "$YELLOW ::$GREEN Installing and configuring grub$RESET\n"
|
||||||
arch-chroot /mnt /usr/bin/env -i arch_user=$normal_user bash -c 'passwd;useradd -m -g users -G wheel -s /bin/bash $arch_user;passwd $arch_user'
|
arch-chroot /mnt /usr/bin/env -i grubdisk=$disk bash -c 'pacman -S grub efibootmgr os-prober;grub-install $grubdisk;grub-mkconfig -o /boot/grub/grub.cfg'
|
||||||
# ----------------------------------------------------------------------
|
}
|
||||||
|
|
||||||
# ------------ installing and configuring sudo -------------------
|
configure_networkmanager() {
|
||||||
printf "$YELLOW ::$GREEN Installing and configuring sudo$RESET\n"
|
printf "$YELLOW ::$GREEN Installing and configuring NetworkManager$RESET\n"
|
||||||
arch-chroot /mnt bash -c 'pacman -S sudo;echo "%wheel ALL=(ALL:ALL) ALL" >> /etc/sudoers'
|
arch-chroot /mnt bash -c 'pacman -S netctl dhcpcd networkmanager network-manager-applet;systemctl enable NetworkManager'
|
||||||
# -------------------------------------------------
|
}
|
||||||
|
|
||||||
# ----------- installing and configuring grub ----------
|
configure_iphone_deps() {
|
||||||
printf "$YELLOW ::$GREEN Installing and configuring grub$RESET\n"
|
printf "$YELLOW ::$GREEN Installing dependencies for connecting iphone$RESET\n"
|
||||||
arch-chroot /mnt /usr/bin/env -i grubdisk=$disk bash -c 'pacman -S grub efibootmgr os-prober;grub-install $grubdisk;grub-mkconfig -o /boot/grub/grub.cfg'
|
arch-chroot /mnt bash -c 'pacman -S libimobiledevice usbmuxd'
|
||||||
# ------------------------------------------------------
|
}
|
||||||
|
|
||||||
# --------- installing and enabling networkmanager --------------------
|
|
||||||
printf "$YELLOW ::$GREEN Installing and configuring NetworkManager$RESET\n"
|
|
||||||
arch-chroot /mnt bash -c 'pacman -S netctl dhcpcd networkmanager network-manager-applet;systemctl enable NetworkManager'
|
|
||||||
# --------------------------------------------------------
|
|
||||||
|
|
||||||
# ------ deps for connecting iphone ----------------------
|
umount_filesystem() {
|
||||||
printf "$YELLOW ::$GREEN Installing dependencies for connecting iphone$RESET\n"
|
printf "$YELLOW ::$GREEN Unmounting filesystem$RESET\n"
|
||||||
arch-chroot /mnt bash -c 'pacman -S libimobiledevice usbmuxd'
|
umount -R /mnt
|
||||||
# -------------------------------------------------------
|
}
|
||||||
|
|
||||||
# ----------------------------------------------------------
|
checking_requirements() {
|
||||||
|
check_system
|
||||||
|
check_root
|
||||||
|
check_disk
|
||||||
|
}
|
||||||
|
|
||||||
# -- umounting filesystem ---
|
prepare_disk() {
|
||||||
# printf "$YELLOW ::$GREEN Unmounting filesystem$RESET\n"
|
partitioning_disk
|
||||||
#umount -R /mnt
|
formatting_partitions
|
||||||
# ---------------------------
|
}
|
||||||
|
|
||||||
|
configure_system() {
|
||||||
|
printf "$YELLOW ::$GREEN System configuration$RESET\n"
|
||||||
|
configure_fstab
|
||||||
|
configure_timezone
|
||||||
|
configure_system_clock
|
||||||
|
configure_locale
|
||||||
|
configure_console
|
||||||
|
configure_networking
|
||||||
|
configure_users
|
||||||
|
configure_sudo
|
||||||
|
configure_grub
|
||||||
|
configure_networkmanager
|
||||||
|
configure_iphone_deps
|
||||||
|
}
|
||||||
|
|
||||||
|
main() {
|
||||||
|
checking_requirements
|
||||||
|
prepare_disk
|
||||||
|
mount_partitions
|
||||||
|
install_base_system
|
||||||
|
configure_system
|
||||||
|
umount_filesystem
|
||||||
|
}
|
||||||
|
|
||||||
|
main
|
||||||
@@ -1,76 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# ---- colors ----
|
|
||||||
RESET='\033[0m'
|
|
||||||
GREEN='\033[0;32m'
|
|
||||||
YELLOW='\033[0;33m'
|
|
||||||
RED='\033[0;31m'
|
|
||||||
# ----------------
|
|
||||||
|
|
||||||
# ------------ cheking system ------------------------------
|
|
||||||
if [[ $(uname) != "Linux" ]]; then
|
|
||||||
printf "$RED This is working only on Linux systems (only Arch Linux)\n$RESET"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
# ----------------------------------------------------------
|
|
||||||
|
|
||||||
# ---------------- upgrading system ------------------------
|
|
||||||
printf "$GREEN upgrading system...\n$RESET"
|
|
||||||
sudo pacman -Syu
|
|
||||||
if [ $? ]; then
|
|
||||||
printf "$GREEN upgrading system success $RESET[$GREEN ok $RESET]\n"
|
|
||||||
else
|
|
||||||
printf "$RED upgrading system not success $RESET[$RED err $RESET]\n"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
# -----------------------------------------------------------
|
|
||||||
|
|
||||||
# -------------------- installing deps ----------------------------
|
|
||||||
printf "$GREEN installing deps... (vim, rofi-wayland, hyprland, waybar, ly, mako, neofetch, ranger, kitty, alacritty, hyprpaper rofimoji)\n$RESET"
|
|
||||||
sudo pacman -S \
|
|
||||||
vim \
|
|
||||||
rofi-wayland \
|
|
||||||
rofimoji \
|
|
||||||
hyprland \
|
|
||||||
hyprpaper \
|
|
||||||
waybar \
|
|
||||||
ly \
|
|
||||||
mako \
|
|
||||||
neofetch \
|
|
||||||
ranger \
|
|
||||||
kitty \
|
|
||||||
alacritty \
|
|
||||||
playerctl
|
|
||||||
if [ $? ]; then
|
|
||||||
printf "$GREEN installing deps success $RESET[$GREEN ok $RESET]\n"
|
|
||||||
else
|
|
||||||
printf "$RED installing deps not success $RESET[$RED err $RESET]\n"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
# ------------------------------------------------------------------
|
|
||||||
|
|
||||||
# -------------- installing paru ---------------
|
|
||||||
printf "$GREEN installing paru...\n$RESET"
|
|
||||||
sudo pacman -S --needed base-devel
|
|
||||||
git clone https://aur.archlinux.org/paru.git
|
|
||||||
cd paru
|
|
||||||
makepkg -si
|
|
||||||
if [ $? ]; then
|
|
||||||
printf "$GREEN installing paru success $RESET[$GREEN ok $RESET]\n"
|
|
||||||
else
|
|
||||||
printf "$RED installing paru not success $RESET[$RED err $RESET]\n"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
# ----------------------------------------------
|
|
||||||
|
|
||||||
# ---------------------- installing deps from AUR ------------------------
|
|
||||||
printf "$GREEN installing deps from AUR... (rofi-greenclip, hyprlock)\n$RESET"
|
|
||||||
paru -S rofi-greenclip hyprlock waybar-module-pacman-updates-git
|
|
||||||
if [ $? ]; then
|
|
||||||
printf "$GREEN installing deps from AUR success $RESET[$GREEN ok $RESET]\n"
|
|
||||||
else
|
|
||||||
printf "$RED installing deps from AUR not success $RESET[$RED err $RESET]\n"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
# ------------------------------------------------------------------------
|
|
||||||
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ -f /etc/exports ]; then
|
|
||||||
printf "please create copy of your old config /etc/exports and delete file /etc/exports\n"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -d ~/dotfiles ]; then
|
|
||||||
printf "please rename your directory of hyprland_dotfiles repository to ~/dotfiles\n"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
sudo -E ln -sv ~/dotfiles/nfs/exports /etc/
|
|
||||||
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ -f /etc/samba/smb.conf ]; then
|
|
||||||
printf "please create copy of your old config /etc/samba/smb.conf and delete file /etc/samba/smb.conf\n"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -d ~/dotfiles ]; then
|
|
||||||
printf "please rename your directory of hyprland_dotfiles repository to ~/dotfiles\n"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
sudo -E ln -sv ~/dotfiles/samba/smb.conf /etc/samba/
|
|
||||||
@@ -1,166 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# ---- colors ----
|
|
||||||
RESET='\033[0m'
|
|
||||||
GREEN='\033[0;32m'
|
|
||||||
YELLOW='\033[0;33m'
|
|
||||||
RED='\033[0;31m'
|
|
||||||
# ----------------
|
|
||||||
|
|
||||||
# ---------------- cheking system ---------------------------
|
|
||||||
if [[ $(uname) != "Linux" ]]; then
|
|
||||||
printf "$RED This is working only on Linux systems (only Arch Linux)\n$RESET"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
# ----------------------------------------------------------
|
|
||||||
|
|
||||||
# -------------- ~/.config/hypr ----------------------------
|
|
||||||
printf "$GREEN installing hyprland configuration...$RESET"
|
|
||||||
if [ ! -d ~/.config/hypr ]; then
|
|
||||||
ln -sv ~/dotfiles/hypr ~/.config/hypr &> /dev/null
|
|
||||||
printf "[$GREEN ok $RESET]\n"
|
|
||||||
else
|
|
||||||
printf "[$YELLOW warn $RESET]\n$YELLOW backup your configuration, delete the folder and try again$RESET\n"
|
|
||||||
fi
|
|
||||||
# -----------------------------------------------------------
|
|
||||||
|
|
||||||
# ---------------------- ~/.config/waybar -------------------
|
|
||||||
printf "$GREEN installing waybar configuration...$RESET"
|
|
||||||
if [ ! -d ~/.config/waybar ]; then
|
|
||||||
ln -sv ~/dotfiles/waybar ~/.config/waybar &> /dev/null
|
|
||||||
printf "[$GREEN ok $RESET]\n"
|
|
||||||
else
|
|
||||||
printf "[$YELLOW warn $RESET]\n$YELLOW backup your configuration, delete the folder and try again$RESET\n"
|
|
||||||
fi
|
|
||||||
# -----------------------------------------------------------
|
|
||||||
|
|
||||||
# -------------- ~/.config/mako -----------------------------
|
|
||||||
printf "$GREEN installing mako configuration...$RESET"
|
|
||||||
if [ ! -d ~/.config/mako ]; then
|
|
||||||
ln -sv ~/dotfiles/mako ~/.config/mako &> /dev/null
|
|
||||||
printf "[$GREEN ok $RESET]\n"
|
|
||||||
else
|
|
||||||
printf "[$YELLOW warn $RESET]\n$YELLOW backup your configuration, delete the folder and try again$RESET\n"
|
|
||||||
fi
|
|
||||||
# -----------------------------------------------------------
|
|
||||||
|
|
||||||
# -------------------- /etc/ly/config.ini -------------------
|
|
||||||
printf "$GREEN installing ly configuration...$RESET"
|
|
||||||
if [ ! -f /etc/ly/config.ini ]; then
|
|
||||||
sudo ln -sv ~/dotfiles/ly/config.ini /etc/ly/config.ini &> /dev/null
|
|
||||||
printf "[$GREEN ok $RESET]\n"
|
|
||||||
else
|
|
||||||
printf "[$YELLOW warn $RESET]\n$YELLOW backup your configuration, delete the folder and try again$RESET\n"
|
|
||||||
fi
|
|
||||||
# -----------------------------------------------------------
|
|
||||||
|
|
||||||
# ----------------- ~/.config/cava --------------------------
|
|
||||||
printf "$GREEN installing cava configuration...$RESET"
|
|
||||||
if [ ! -d ~/.config/cava ]; then
|
|
||||||
ln -sv ~/dotfiles/cava ~/.config/cava &> /dev/null
|
|
||||||
printf "[$GREEN ok $RESET]\n"
|
|
||||||
else
|
|
||||||
printf "[$YELLOW warn $RESET]\n$YELLOW backup your configuration, delete the folder and try again$RESET\n"
|
|
||||||
fi
|
|
||||||
# -----------------------------------------------------------
|
|
||||||
|
|
||||||
# --------------- ~/.config/greenclip.toml ------------------
|
|
||||||
printf "$GREEN installing greenclip configuration...$RESET"
|
|
||||||
if [ ! -f ~/.config/greenclip.toml ]; then
|
|
||||||
ln -sv ~/dotfiles/greenclip/greenclip.toml ~/.config/greenclip.toml &> /dev/null
|
|
||||||
printf "[$GREEN ok $RESET]\n"
|
|
||||||
else
|
|
||||||
printf "[$YELLOW warn $RESET]\n$YELLOW backup your configuration, delete the folder and try again$RESET\n"
|
|
||||||
fi
|
|
||||||
# -----------------------------------------------------------
|
|
||||||
|
|
||||||
# ------------------------ ~/.config/alacritty --------------
|
|
||||||
printf "$GREEN installing alacritty configuration...$RESET"
|
|
||||||
if [ ! -d ~/.config/alacritty ]; then
|
|
||||||
ln -sv ~/dotfiles/alacritty ~/.config/alacritty &> /dev/null
|
|
||||||
printf "[$GREEN ok $RESET]\n"
|
|
||||||
else
|
|
||||||
printf "[$YELLOW warn $RESET]\n$YELLOW backup your configuration, delete the folder and try again$RESET\n"
|
|
||||||
fi
|
|
||||||
# ------------------------------------------------------------
|
|
||||||
|
|
||||||
# -------------------- ~/.vimrc ------------------------------
|
|
||||||
printf "$GREEN installing vim configuration...$RESET"
|
|
||||||
if [ ! -f ~/.vimrc ]; then
|
|
||||||
ln -sv ~/dotfiles/vimrc ~/.vimrc &> /dev/null
|
|
||||||
printf "[$GREEN ok $RESET]\n"
|
|
||||||
else
|
|
||||||
printf "[$YELLOW warn $RESET]\n$YELLOW backup your configuration, delete the folder and try again$RESET\n"
|
|
||||||
fi
|
|
||||||
# -------------------------------------------------------------
|
|
||||||
|
|
||||||
# -------------------- ~/.config/neofetch ------------------------------
|
|
||||||
printf "$GREEN installing neofetch configuration...$RESET"
|
|
||||||
if [ ! -d ~/.config/neofetch ]; then
|
|
||||||
ln -sv ~/dotfiles/neofetch ~/.config/neofetch &> /dev/null
|
|
||||||
printf "[$GREEN ok $RESET]\n"
|
|
||||||
else
|
|
||||||
printf "[$YELLOW warn $RESET]\n$YELLOW backup your configuration, delete the folder and try again$RESET\n"
|
|
||||||
fi
|
|
||||||
# -------------------------------------------------------------
|
|
||||||
|
|
||||||
# -------------------- ~/.config/ranger ------------------------------
|
|
||||||
printf "$GREEN installing ranger configuration...$RESET"
|
|
||||||
if [ ! -d ~/.config/ranger ]; then
|
|
||||||
ln -sv ~/dotfiles/ranger ~/.config/ranger &> /dev/null
|
|
||||||
printf "[$GREEN ok $RESET]\n"
|
|
||||||
else
|
|
||||||
printf "[$YELLOW warn $RESET]\n$YELLOW backup your configuration, delete the folder and try again$RESET\n"
|
|
||||||
fi
|
|
||||||
# -------------------------------------------------------------
|
|
||||||
|
|
||||||
# -------------------- ~/.config/kitty ------------------------------
|
|
||||||
printf "$GREEN installing kitty configuration...$RESET"
|
|
||||||
if [ ! -d ~/.config/kitty ]; then
|
|
||||||
ln -sv ~/dotfiles/kitty ~/.config/kitty &> /dev/null
|
|
||||||
printf "[$GREEN ok $RESET]\n"
|
|
||||||
else
|
|
||||||
printf "[$YELLOW warn $RESET]\n$YELLOW backup your configuration, delete the folder and try again$RESET\n"
|
|
||||||
fi
|
|
||||||
# -------------------------------------------------------------
|
|
||||||
|
|
||||||
# -------------------- ~/.config/rofimoji.rc ------------------------------
|
|
||||||
printf "$GREEN installing rofimoji configuration...$RESET"
|
|
||||||
if [ ! -f ~/.config/rofimoji.rc ]; then
|
|
||||||
ln -sv ~/dotfiles/rofi/emoji/rofimoji.rc ~/.config/rofimoji.rc &> /dev/null
|
|
||||||
printf "[$GREEN ok $RESET]\n"
|
|
||||||
else
|
|
||||||
printf "[$YELLOW warn $RESET]\n$YELLOW backup your configuration, delete the folder and try again$RESET\n"
|
|
||||||
fi
|
|
||||||
# -------------------------------------------------------------
|
|
||||||
|
|
||||||
# -------------------- ~/.config/fastfetch ------------------------------
|
|
||||||
printf "$GREEN installing fastfetch configuration...$RESET"
|
|
||||||
if [ ! -d ~/.config/fastfetch ]; then
|
|
||||||
ln -sv ~/dotfiles/fastfetch ~/.config/fastfetch &> /dev/null
|
|
||||||
printf "[$GREEN ok $RESET]\n"
|
|
||||||
else
|
|
||||||
printf "[$YELLOW warn $RESET]\n$YELLOW backup your configuration, delete the folder and try again$RESET\n"
|
|
||||||
fi
|
|
||||||
# -------------------------------------------------------------
|
|
||||||
|
|
||||||
# ------------------- ~/.config/picom -------------------------
|
|
||||||
printf "$GREEN installing picom configuration...$RESET"
|
|
||||||
if [ ! -d ~/.config/picom ]; then
|
|
||||||
ln -sv ~/dotfiles/picom ~/.config/picom &> /dev/null
|
|
||||||
printf "[$GREEN ok $RESET]\n"
|
|
||||||
else
|
|
||||||
printf "[$YELLOW warn $RESET]\n$YELLOW backup your configuration, delete the folder and try again$RESET\n"
|
|
||||||
fi
|
|
||||||
# -------------------------------------------------------------
|
|
||||||
|
|
||||||
# ------------------- ~/.config/dunst -------------------------
|
|
||||||
printf "$GREEN installing dunst configuration...$RESET"
|
|
||||||
if [ ! -d ~/.config/dunst ]; then
|
|
||||||
ln -sv ~/dotfiles/dunst ~/.config/dunst &> /dev/null
|
|
||||||
printf "[$GREEN ok $RESET]\n"
|
|
||||||
else
|
|
||||||
printf "[$YELLOW warn $RESET]\n$YELLOW backup your configuration, delete the folder and try again$RESET\n"
|
|
||||||
fi
|
|
||||||
# -------------------------------------------------------------
|
|
||||||
|
|
||||||
Reference in new issue
Block a user