123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749 |
- #!/bin/bash
- # Config created by user
- # Copyright (C) 2022 user
- # mkdir -p ~/.dotfiles
- # -----------------------------------------------------------------------------
- # --- SETTINGS
- # -----------------------------------------------------------------------------
- config_directory="$HOME/.config"
- fonts_directory="/usr/share/fonts"
- scripts_directory="/usr/local/bin"
- gtk_theme_directory="/usr/share/themes"
- green='\033[0;32m'
- magenta='\x1b[38;5;206m'
- normal='\033[0m'
- bold='\033[1m'
- no_color='\033[0m'
- date=$(date +%s)
- # -----------------------------------------------------------------------------
- # --- INSTALL DIALOG
- # -----------------------------------------------------------------------------
- sudo pacman --noconfirm --needed -Sy dialog less
- # -----------------------------------------------------------------------------
- # --- SYSTEM UPDATE
- # -----------------------------------------------------------------------------
- system_update() {
- echo -e "${green}${bold}[*] DOING A SYSTEM UPDATE, CAUSE STUFF MAY BREAK IF IT'S NOT THE LATEST VERSION...${normal}${no_color}"
- echo
- sleep 1
- sudo pacman -Sy --noconfirm archlinux-keyring
- sudo pacman --noconfirm -Syu
- sudo pacman -S --noconfirm --needed base-devel wget git curl
- echo
- echo -e "${magenta}${bold}[+] DONE ----------------------------------------${normal}${no_color}"
- echo
- }
- # -----------------------------------------------------------------------------
- # --- INSTALL AUR HELPER
- # -----------------------------------------------------------------------------
- install_aur_helper() {
- if ! command -v "$aurhelper" &>/dev/null; then
- echo -e "${green}${bold}[*] IT SEEMS THAT YOU DON'T HAVE $aurhelper INSTALLED, I'LL INSTALL THAT FOR YOU BEFORE CONTINUING.${normal}${no_color}"
- echo
- sleep 1
- git clone https://aur.archlinux.org/"$aurhelper".git $HOME/.srcs/"$aurhelper"
- (cd $HOME/.srcs/"$aurhelper"/ && makepkg -si)
- else
- echo -e "${green}[*] IT SEEMS THAT YOU ALREADY HAVE $aurhelper INSTALLED, SKIPPING.${no_color}"
- echo
- sleep 1
- fi
- echo
- echo -e "${magenta}${bold}[+] DONE ----------------------------------------${normal}${no_color}"
- echo
- }
- # -----------------------------------------------------------------------------
- # --- INSTALL PACKAGES WHIT PACMAN
- # -----------------------------------------------------------------------------
- install_pkgs() {
- echo -e "${green}${bold}[*] INSTALLING PACKAGES WITH PACMAN...${normal}${no_color}"
- echo
- sleep 1
- PKGS=(
- # INSTALLING XORG ---------------------------------------------------------
- 'xorg'
- 'xorg-server'
- 'xorg-apps'
- 'xorg-xinit'
- 'xf86-video-intel'
- 'mesa'
- 'acpi' # ACPI (Advanced Configuration and Power Interface)
- 'pacman-contrib' # Contributed scripts and tools for pacman systems
- 'base-devel'
- 'curl'
- 'git'
- 'wget'
- 'xfce4-power-manager'
- # TERMINAL EMULATOR -------------------------------------------------------
- 'alacritty'
- 'kitty'
- # TERMINAL UTILITES -------------------------------------------------------
- 'htop'
- 'neovim'
- 'neofetch'
- 'feh'
- 'dunst'
- # 'scrot'
- 'flameshot'
- 'xclip'
- 'fish'
- 'file-roller'
- 'sbxkb'
- 'gufw'
- 'hardinfo'
- 'inxi'
- 'jq'
- 'jshon'
- 'ntp'
- 'numlockx'
- 'openssh'
- 'rsync'
- 'tlp'
- 'pass'
- 'ripgrep'
- 'fzf'
- # 'picom'
- 'yt-dlp'
- # 'tmux'
- 'man-db'
- 'cmatrix'
- 'ncdu'
- 'calcurse'
- 'unclutter'
- 'bat'
- 'exa'
- 'dosfstools'
- 'brightnessctl'
- 'lazygit'
- # MEDIA -------------------------------------------------------------------
- 'mpd'
- 'ncmpcpp'
- 'mpv'
- 'cmus'
- 'ffmpeg'
- 'alsa-utils'
- 'pavucontrol'
- # PRODUCTIVITY ------------------------------------------------------------
- 'galculator'
- 'zathura'
- 'zathura-pdf-mupdf'
- 'obsidian'
- # FILEMANAGER -------------------------------------------------------------
- 'nemo'
- 'ranger'
- 'mc'
- 'udiskie'
- # 'thunar'
- # 'thunar-archive-plugin'
- # 'thunar-volman'
- 'tumbler'
- # WEB TOOLS ---------------------------------------------------------------
- 'firefox'
- # 'links'
- # ARCHIVE -----------------------------------------------------------------
- 'unrar'
- 'unzip'
- 'zip'
- 'p7zip'
- # DISK UTILITIES ----------------------------------------------------------
- 'autofs'
- 'exfat-utils'
- 'gparted'
- 'gnome-disks'
- 'ntfs-3g'
- 'parted'
- 'gvfs'
- 'gvfs-mtp'
- 'gvfs-afc'
- 'gvfs-gphoto2'
- 'gvfs-nfs'
- 'gvfs-smb'
- 'xdg-utils'
- 'xdg-user-dirs-gtk'
- # GENERAL UTILITIES -------------------------------------------------------
- 'veracrypt' # Disc encryption utility
- 'keepassxc' # Pass manager
- 'catfish' # Filesystem search
- # GENERAL UTILITIES -------------------------------------------------------
- 'arc-gtk-theme'
- # 'lxappearance'
- # SYSTEM UTILITIES -------------------------------------------------------
- 'psutils'
- 'solaar' # logitech trackboll mouse settings
- # FONTS -------------------------------------------------------
- 'adobe-source-code-pro-fonts'
- 'nerd-fonts'
- 'noto-fonts'
- 'noto-fonts-emoji'
- 'noto-fonts-cjk'
- 'ttf-jetbrains-mono'
- 'ttf-joypixels'
- 'ttf-font-awesome'
- 'ttf-hack'
- 'terminus-font'
- )
- for PKG in "${PKGS[@]}"; do
- sudo pacman -S "$PKG" --noconfirm --needed
- done
- echo
- echo -e "${magenta}${bold}[+] DONE ----------------------------------------${normal}${no_color}"
- echo
- }
- # -----------------------------------------------------------------------------
- # --- INSTALL PACKAGES WITH $aurhelper
- # -----------------------------------------------------------------------------
- install_aur_pkgs() {
- echo -e "${green}${bold}[*] INSTALLING PACKAGES WITH $aurhelper...${normal}${no_color}"
- echo
- sleep 1
- PKGS=(
- 'cava'
- # 'ueberzug'
- 'volctl'
- 'caffeine-ng'
- # 'picom-git'
- 'brother-hl1210w'
- # 'ueberzugpp'
- )
- for PKG in "${PKGS[@]}"; do
- "$aurhelper" -S "$PKG" --noconfirm --needed
- done
- echo
- echo -e "${magenta}${bold}[+] DONE ----------------------------------------${normal}${no_color}"
- echo
- }
- # -----------------------------------------------------------------------------
- # --- INSTALL DEVELOPMENT
- # -----------------------------------------------------------------------------
- install_development() {
- echo -e "${green}${bold}[*] INSTALLING DEVELOPMENT...${normal}${no_color}"
- echo
- sleep 1
- PKGS=(
- 'nodejs'
- 'npm'
- 'yarn'
- 'pyenv'
- 'filezilla'
- 'code'
- 'tmux'
- 'neovim'
- 'dbeaver'
- # NOTE: add docker, postgresql
- )
- for PKG in "${PKGS[@]}"; do
- sudo pacman -S "$PKG" --noconfirm --needed
- done
- echo
- echo -e "${magenta}${bold}[+] DONE ------------------------------------------${normal}${no_color}"
- echo
- }
- # -----------------------------------------------------------------------------
- # --- INSTALL GRAPHICS AND DESIGN
- # -----------------------------------------------------------------------------
- install_graphics() {
- echo -e "${green}${bold}[*] INSTALLING GRAPHICS AND DESIGN...${normal}${no_color}"
- echo
- sleep 1
- PKGS=(
- # 'gcolor2'
- 'gcolor3'
- # 'gimp'
- 'inkscape'
- # 'krita'
- 'imagemagick'
- # 'nomacs'
- 'pngcrush'
- # 'ristretto'
- 'sxiv'
- )
- for PKG in "${PKGS[@]}"; do
- sudo pacman -S "$PKG" --noconfirm --needed
- done
- echo
- echo -e "${magenta}${bold}[+] DONE ------------------------------------------${normal}${no_color}"
- echo
- }
- # -----------------------------------------------------------------------------
- # --- INSTALL NETWORK
- # -----------------------------------------------------------------------------
- install_network() {
- echo -e "${green}${bold}[*] INSTALLING NETWORK...${normal}${no_color}"
- echo
- sleep 1
- PKGS=(
- 'wpa_supplicant'
- # 'dialog'
- 'networkmanager'
- 'openvpn'
- 'networkmanager-openvpn'
- 'networkmanager-vpnc'
- 'network-manager-applet'
- 'dhclient'
- 'libsecret'
- 'dnsutils'
- 'dhcpcd'
- )
- for PKG in "${PKGS[@]}"; do
- sudo pacman -S "$PKG" --noconfirm --needed
- done
- # sudo systemctl enable NetworkManager.service
- # sudo systemctl start NetworkManager.service
- echo
- echo -e "${magenta}${bold}[+] DONE ------------------------------------------${normal}${no_color}"
- echo
- }
- # -----------------------------------------------------------------------------
- # --- INSTALL PRINTERS & SACANNERS
- # -----------------------------------------------------------------------------
- install_printers_scanners() {
- echo -e "${green}${bold}[*] INSTALLING PRINTERS & SACANNERS...${normal}${no_color}"
- echo
- sleep 1
- PKGS=(
- 'cups'
- 'cups-pdf'
- 'ghostscript'
- 'gsfonts'
- 'system-config-printer'
- 'skanlite'
- 'simple-scan'
- 'sane'
- 'sane-airscan'
- )
- for PKG in "${PKGS[@]}"; do
- sudo pacman -S "$PKG" --noconfirm --needed
- done
- # sudo systemctl enable org.cups.cupsd.service
- # sudo systemctl start org.cups.cupsd.service
- # sudo systemctl enable --now cups
- echo
- echo -e "${magenta}${bold}[+] DONE ------------------------------------------${normal}${no_color}"
- echo
- }
- # -----------------------------------------------------------------------------
- # --- INSTALL BLUETOOTH
- # -----------------------------------------------------------------------------
- install_bluetooth() {
- echo -e "${green}${bold}[*] INSTALLING BLUETOOTH...${normal}${no_color}"
- echo
- sleep 1
- PKGS=(
- 'bluez'
- 'bluez-utils'
- 'bluez-firmware'
- # 'blueberry'
- 'pulseaudio-bluetooth'
- 'blueman'
- )
- for PKG in "${PKGS[@]}"; do
- sudo pacman -S "$PKG" --noconfirm --needed
- done
- # sudo systemctl enable bluetooth
- # sudo systemctl start bluetooth
- echo
- echo -e "${magenta}${bold}[+] DONE ------------------------------------------${normal}${no_color}"
- echo
- }
- # -----------------------------------------------------------------------------
- # --- INSTALL VIRTUAL MACHINE
- # -----------------------------------------------------------------------------
- install_vm() {
- echo -e "${green}${bold}[*] INSTALLING QEMU A GENERIC AND OPEN SOURCE MACHINE EMULATOR AND VIRTUALIZER...${normal}${no_color}"
- echo
- sleep 1
- PKGS=(
- 'virt-manager'
- 'qemu'
- 'bridge-utils'
- 'ebtables'
- )
- for PKG in "${PKGS[@]}"; do
- sudo pacman -S "$PKG" --noconfirm --needed
- done
- # sudo systemctl enable libvirtd
- # sudo systemctl enable ebtables
- # sudo systemctl enable dnsmasq
- # sudo gpasswd -a user libvirt
- # sudo gpasswd -a user kvm
- echo
- echo -e "${magenta}${bold}[+] DONE ------------------------------------------${normal}${no_color}"
- echo
- }
- # -----------------------------------------------------------------------------
- # --- CREATE DEFAULT DIRECTORIES
- # -----------------------------------------------------------------------------
- create_default_directories() {
- echo -e "${green}${bold}[*] COPYING CONFIGS TO $config_directory...${normal}${no_color}"
- echo
- sleep 1
- mkdir -p "$HOME"/.config && echo -e "${magenta}- [+] DONE -> .config/"
- sudo mkdir -p /usr/local/bin && echo -e "${magenta}- [+] DONE -> /usr/local/bin"
- sudo mkdir -p /usr/share/themes && echo -e "${magenta}- [+] DONE -> /usr/share/themes"
- mkdir -p "$HOME"/Pictures/wallpapers && echo -e "${magenta}- [+] DONE -> /Pictures/wallpapers"
- echo
- echo -e "${magenta}${bold}[+] DONE ----------------------------------------${normal}${no_color}"
- echo
- }
- # -----------------------------------------------------------------------------
- # --- CREATE BACKUP
- # -----------------------------------------------------------------------------
- create_backup() {
- echo -e "${green}${bold}[*] INSTALLING CREATING BACKUP OF EXISTING CONFIGS...${normal}${no_color}"
- echo
- sleep 1
- [ -d "$config_directory"/alacritty ] && mv "$config_directory"/alacritty "$config_directory"/alacritty_$date && echo "alacritty configs detected, backing up."
- [ -d "$config_directory"/kitty ] && mv "$config_directory"/kitty "$config_directory"/kitty_$date && echo "alacritty configs detected, backing up."
- [ -d "$config_directory"/dunst ] && mv "$config_directory"/dunst "$config_directory"/dunst_$date && echo "dunst configs detected, backing up."
- [ -d "$config_directory"/mpd ] && mv "$config_directory"/mpd "$config_directory"/mpd_$date && echo "mpd configs detected, backing up."
- [ -d "$config_directory"/ncmpcpp ] && mv "$config_directory"/ncmpcpp "$config_directory"/ncmpcpp_$date && echo "ncmpcpp configs detected, backing up."
- [ -d "$config_directory"/ranger ] && mv "$config_directory"/ranger "$config_directory"/ranger_$date && echo "ranger configs detected, backing up."
- [ -d "$config_directory"/zathura ] && mv "$config_directory"/zathura "$config_directory"/zathura_$date && echo "zathura configs detected, backing up."
- [ -d "$config_directory"/picom ] && mv "$config_directory"/picom "$config_directory"/picom_$date && echo "picom configs detected, backing up."
- [ -f "$config_directory"/Code\ -\ OSS/User/settings.json ] && mv "$config_directory"/Code\ -\ OSS/User/settings.json "$config_directory"/Code\ -\ OSS/User/settings.json_$date && echo "Vsc configs detected, backing up."
- # [ -d "$config_directory"/neofetch ] && mv "$config_directory"/neofetch "$config_directory"/neofetch_$date && echo "neofetch configs detected, backing up."
- # [ -d "$config_directory"/nvim ] && mv "$config_directory"/nvim "$config_directory"/nvim_$date && echo "nvim configs detected, backing up."
- # [ -d "$config_directory"/polybar ] && mv "$config_directory"/polybar "$config_directory"/polybar_$date && echo "polybar configs detected, backing up."
- # [ -d "$scripts_directory" ] && sudo mv "$scripts_directory" "$scripts_directory"_$date && echo "scripts ($scripts_directory) detected, backing up."
- # [ -f /etc/fonts/local.conf ] && sudo mv /etc/fonts/local.conf /etc/fonts/local.conf_$date && echo "Fonts configs detected, backing up."
- echo
- echo -e "${magenta}${bold}[+] DONE ----------------------------------------${normal}${no_color}"
- echo
- }
- # -----------------------------------------------------------------------------
- # --- COPY CONFIGS
- # -----------------------------------------------------------------------------
- copy_configs() {
- echo -e "${green}${bold}[*] COPYING CONFIG TO... $config_directory ${normal}${no_color}"
- echo
- sleep 1
- cp -r $HOME/.dotfiles/config/* "$config_directory"
- # Symlinks Config
- ln -s $HOME/.dotfiles/other_config/alias ~/.alias
- ln -s $HOME/.dotfiles/other_config/tmux.conf ~/.tmux.conf
- ln -s $HOME/.dotfiles/other_config/xinitrc ~/.xinitrc
- ln -s $HOME/.dotfiles/other_config/Xresources ~/.Xresources
- cp -r $HOME/.dotfiles/other_config/gtkrc-2.0 ~/.gtkrc-2.0
- cp -r $HOME/.dotfiles/config/gtk-2.0 ~/.config
- cp -r $HOME/.dotfiles/config/gtk-3.0 ~/.config
- rm $HOME/.config/alacritty/alacritty.yml
- ln -s $HOME/.dotfiles/config/alacritty/alacritty.yml $HOME/.config/alacritty/alacritty.yml
- rm $HOME/.config/cava/config
- ln -s $HOME/.dotfiles/config/cava/config $HOME/.config/cava/config
- rm $HOME/.config/dunst/dunstrc
- ln -s $HOME/.dotfiles/config/dunst/dunstrc $HOME/.config/dunst/dunstrc
- rm $HOME/.config/kitty/kitty.conf
- ln -s $HOME/.dotfiles/config/kitty/kitty.conf $HOME/.config/kitty/kitty.conf
- rm $HOME/.config/mpd/mpd.conf
- ln -s $HOME/.dotfiles/config/mpd/mpd.conf $HOME/.config/mpd/mpd.conf
- rm $HOME/.config/mpv/mpv.conf
- ln -s $HOME/.dotfiles/config/mpv/mpv.conf $HOME/.config/mpv/mpv.conf
-
- rm $HOME/.config/ncmpcpp/config
- ln -s $HOME/.dotfiles/config/ncmpcpp/config $HOME/.config/ncmpcpp/config
- rm $HOME/.config/ranger/rc.conf
- ln -s $HOME/.dotfiles/config/ranger/rc.conf $HOME/.config/ranger/rc.conf
- rm $HOME/.config/zathura/zathurarc
- ln -s $HOME/.dotfiles/config/zathura/zathurarc $HOME/.config/zathura/zathurarc
- rm $HOME/.config/picom/picom.conf
- ln -s $HOME/.dotfiles/config/picom/picom.conf $HOME/.config/picom/picom.conf
- rm $HOME/.config/bspwm/bspwmrc
- ln -s $HOME/.dotfiles/config/bspwm/bspwmrc $HOME/.config/bspwm/bspwmrc
- rm $HOME/.config/sxhkd/sxhkdrc
- ln -s $HOME/.dotfiles/config/sxhkd/sxhkdrc $HOME/.config/sxhkd/sxhkdrc
- rm $HOME/.config/polybar/config.ini
- ln -s $HOME/.dotfiles/config/polybar/config.ini $HOME/.config/polybar/config.ini
- echo
- echo -e "${magenta}${bold}[+] DONE ----------------------------------------${normal}${no_color}"
- echo
- }
- # -----------------------------------------------------------------------------
- # --- COPY SCRIPTS
- # -----------------------------------------------------------------------------
- copy_scripts() {
- echo -e "${green}[*] COPYING SCRIPTS TO... $scripts_directory.${no_color}"
- echo
- sleep 1
- # sudo cp -r ./scripts/* "$scripts_directory"
- echo "COPY MY SCRIPTS ..."
- echo
- echo -e "${magenta}${bold}[+] DONE ----------------------------------------${normal}${no_color}"
- echo
- }
- # -----------------------------------------------------------------------------
- # --- FINISHING
- # -----------------------------------------------------------------------------
- finishing() {
- echo -e "${green}[*] FINISHING... $scripts_directory.${no_color}"
- echo
- sleep 1
- fc-cache -fv
- echo "[ -f ~/.alias ] && source ~/.alias" >>$HOME/.bashrc
- echo "[ -f ~/.alias ] && source ~/.alias" >>$HOME/.config/fish/config.fish
- sudo systemctl enable NetworkManager.service
- sudo systemctl start NetworkManager.service
- sudo systemctl enable org.cups.cupsd.service
- sudo systemctl start org.cups.cupsd.service
- sudo systemctl enable --now cups
- sudo systemctl enable bluetooth
- sudo systemctl start bluetooth
- sudo systemctl enable libvirtd
- sudo systemctl enable ebtables
- sudo systemctl enable dnsmasq
- sudo gpasswd -a user libvirt
- sudo gpasswd -a user kvm
- cp -r $HOME/.dotfiles/wallpaper/* $HOME/Pictures/wallpapers
- cp -r $HOME/.dotfiles/ThemeIcons/kora-1-5-6 $HOME/.icons
- git clone https://github.com/alexanderjeurissen/ranger_devicons ~/.config/ranger/plugins/ranger_devicons
- echo
- echo -e "${magenta}${bold}[+] DONE ----------------------------------------${normal}${no_color}"
- echo
- }
- # TODO: INSTALL WM TODIALOG DWM DWM_FLEXIPATCH QTILE BSPWM
- # -----------------------------------------------------------------------------
- # --- INSTALL DWM
- # -----------------------------------------------------------------------------
- install_dwm() {
- echo -e "${green}[*] INSTALL DWM...${no_color}"
- echo
- sleep 1
- [ -d "$config_directory"/suckless ] && rm -rf "$config_directory"/suckless
- cp -r $HOME/.dotfiles/WM/suckless/ "$config_directory"/suckless
- cd $HOME/.config/suckless/dwm-6.4
- sudo make uninstall
- sudo make clean install
- echo -e "${magenta}[+] DWM INSTALLED ---${normal}${no_color}"
- cd $HOME/.config/suckless/dmenu-5.2
- sudo make uninstall
- sudo make clean install
- echo -e "${magenta}[+] DMENU INSTALLED ---${normal}${no_color}"
- cd $HOME/.config/suckless/st-0.9
- sudo make uninstall
- sudo make clean install
- echo -e "${magenta}[+] ST INSTALLED ---${normal}${no_color}"
- cd $HOME/.config/suckless/slstatus
- sudo make uninstall
- sudo make clean install
- echo -e "${magenta}[+] SLSTATUS INSTALLED ---${normal}${no_color}"
- cd $HOME/.config/suckless/slock-1.5
- sudo make uninstall
- sudo make clean install
- echo -e "${magenta}[+] SLOCK INSTALLED ---${normal}${no_color}"
- cd
- echo
- echo -e "${magenta}${bold}[+] DONE ----------------------------------------${normal}${no_color}"
- echo
- }
- # -----------------------------------------------------------------------------
- # --- INSTALL QTILE
- # -----------------------------------------------------------------------------
- install_qtile() {
- echo -e "${green}${bold}[*] INSTALLING QTILE WM ...${normal}${no_color}"
- echo
- sleep 1
- PKGS=(
- 'qtile'
- )
- for PKG in "${PKGS[@]}"; do
- sudo pacman -S "$PKG" --noconfirm --needed
- done
- echo
- echo -e "${magenta}${bold}[+] DONE ------------------------------------------${normal}${no_color}"
- echo
- }
- cmd=(dialog --clear --title "Aur helper" --menu "Firstly, select the aur helper you want to install (or have already installed)." 10 50 16)
- options=(1 "yay" 2 "paru")
- choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
- case $choices in
- 1) aurhelper="yay" ;;
- 2) aurhelper="paru" ;;
- esac
- cmd=(dialog --clear --separate-output --checklist "Select (with space) what script should do.\\nChecked options are required for proper installation, do not uncheck them if you do not know what you are doing." 26 86 16)
- options=(
- 1 "System update" on
- 2 "Install aur helper" on
- 3 "Install basic packages" on
- 4 "Install basic packages (aur)" on
- 5 "Install development" on
- 6 "Install graphics and design" on
- 7 "Install network" on
- 8 "Install printers & sacanners" on
- 9 "Install bluetooth" on
- 10 "Install virtual machine" off
- 11 "Create default directories" on
- 12 "Create backup of existing configs (to prevent overwritting)" off
- 13 "Copy configs" on
- 14 "Copy scripts" on
- 15 "Alias, Enable Services" on
- )
- choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
- clear
- for choice in $choices; do
- case $choice in
- 1) system_update ;;
- 2) install_aur_helper ;;
- 3) install_pkgs ;;
- 4) install_aur_pkgs ;;
- 5) install_development ;;
- 6) install_graphics ;;
- 7) install_network ;;
- 8) install_printers_scanners ;;
- 9) install_bluetooth ;;
- 10) install_vm ;;
- 11) create_default_directories ;;
- 12) create_backup ;;
- 13) copy_configs ;;
- 14) copy_scripts ;;
- 15) finishing ;;
- esac
- done
- cmd=(dialog --clear --separate-output --checklist "Select (with space) what script should do.\\nChecked options are required for proper installation, do not uncheck them if you do not know what you are doing." 26 86 16)
- options=(
- 1 "Install DWM 6.4 (Window Manager)" on
- 2 "Install Qtile (Window Manager)" off
- )
- choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
- clear
- for choice in $choices; do
- case $choice in
- 1) install_dwm ;;
- 2) install_qtile ;;
- esac
- done
|