2020-02-21 14:58:26 +01:00
|
|
|
#!/bin/bash
|
2020-02-28 22:33:35 +01:00
|
|
|
|
2020-10-26 19:50:44 +01:00
|
|
|
# TODO make this work
|
2020-11-05 20:27:04 +01:00
|
|
|
# NOTE ignore errors from missing "||". Try getting the line below to work
|
2020-10-26 19:50:44 +01:00
|
|
|
#set -euo pipefail
|
2020-10-12 07:16:00 +02:00
|
|
|
|
2020-02-28 22:39:50 +01:00
|
|
|
#change to home (does not show in terminal)
|
2020-10-12 07:16:37 +02:00
|
|
|
cd "$HOME"
|
2020-02-28 22:33:35 +01:00
|
|
|
|
2020-08-28 21:46:34 +02:00
|
|
|
in_xfce=0
|
2020-09-18 16:47:29 +02:00
|
|
|
in_i3gaps=0
|
2020-03-02 13:31:03 +01:00
|
|
|
|
2020-06-12 16:23:06 +02:00
|
|
|
cmd=(dialog --separate-output --checklist "Select Desktop environment/Window manager:" 22 76 16)
|
|
|
|
options=(1 "[DE] xfce4" off # any option can be set to default to "on"
|
2020-11-05 20:08:50 +01:00
|
|
|
2 "[WM] i3-gaps" off)
|
2020-06-12 16:23:06 +02:00
|
|
|
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
|
2020-08-28 21:46:34 +02:00
|
|
|
clear
|
2020-06-12 16:23:06 +02:00
|
|
|
for choice in $choices
|
|
|
|
do
|
|
|
|
case $choice in
|
|
|
|
1)
|
2020-08-28 21:46:34 +02:00
|
|
|
in_xfce=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "xfce4" >> selectedpkgs.txt
|
2020-06-12 16:23:06 +02:00
|
|
|
;;
|
|
|
|
2)
|
2020-09-18 16:47:29 +02:00
|
|
|
in_i3gaps=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "i3-gaps" >> selectedpkgs.txt
|
2020-06-12 16:23:06 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
2020-05-07 08:43:48 +02:00
|
|
|
|
2020-08-28 21:46:34 +02:00
|
|
|
in_firefox=0
|
2020-11-10 22:02:33 +01:00
|
|
|
in_chromium=0
|
2020-08-28 21:46:34 +02:00
|
|
|
in_netsurf=0
|
|
|
|
in_icecat=0
|
|
|
|
in_tor=0
|
|
|
|
|
2020-06-14 18:00:55 +02:00
|
|
|
cmd=(dialog --separate-output --checklist "Select browsers:" 22 76 16)
|
|
|
|
options=(1 "Firefox" on # any option can be set to default to "on"
|
2020-11-10 22:02:33 +01:00
|
|
|
2 "Chromium" off
|
|
|
|
3 "Netsurf" off
|
|
|
|
4 "Icecat" off
|
|
|
|
5 "Torbrowser" on)
|
2020-06-14 18:00:55 +02:00
|
|
|
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
|
2020-08-28 21:46:34 +02:00
|
|
|
clear
|
2020-06-14 18:00:55 +02:00
|
|
|
for choice in $choices
|
|
|
|
do
|
|
|
|
case $choice in
|
|
|
|
1)
|
2020-08-28 21:46:34 +02:00
|
|
|
in_firefox=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "firefox" >> selectedpkgs.txt
|
2020-06-14 18:00:55 +02:00
|
|
|
;;
|
|
|
|
2)
|
2020-11-10 22:02:33 +01:00
|
|
|
in_chromium=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "chromium" >> selectedpkgs.txt
|
2020-06-14 18:00:55 +02:00
|
|
|
;;
|
|
|
|
3)
|
2020-08-28 21:46:34 +02:00
|
|
|
in_netsurf=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "netsurf" >> selectedpkgs.txt
|
2020-06-14 18:00:55 +02:00
|
|
|
;;
|
2020-11-10 22:02:33 +01:00
|
|
|
4)
|
2020-08-28 21:46:34 +02:00
|
|
|
in_icecat=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "icecat-bin" >> aurselectedpkgs.txt
|
2020-06-20 08:32:35 +02:00
|
|
|
;;
|
2020-11-10 22:02:33 +01:00
|
|
|
5)
|
2020-08-28 21:46:34 +02:00
|
|
|
in_tor=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "torbrowser-launcher" >> selectedpkgs.txt
|
2020-06-21 22:16:27 +02:00
|
|
|
;;
|
2020-06-14 18:00:55 +02:00
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2020-08-28 21:46:34 +02:00
|
|
|
in_virtmanager=0
|
|
|
|
in_steam=0
|
|
|
|
in_lutris=0
|
|
|
|
in_blender=0
|
|
|
|
in_krita=0
|
2020-09-18 16:47:29 +02:00
|
|
|
in_youtubedl=0
|
2020-08-28 21:46:34 +02:00
|
|
|
in_discord=0
|
|
|
|
in_handbrake=0
|
|
|
|
in_gimp=0
|
|
|
|
in_audacity=0
|
|
|
|
in_mangohud=0
|
|
|
|
in_easystrokes=0
|
|
|
|
in_liferea=0
|
2020-11-15 10:56:25 +01:00
|
|
|
in_fractal=0
|
2020-08-28 21:46:34 +02:00
|
|
|
in_bettergram=0
|
2020-11-05 20:27:04 +01:00
|
|
|
in_waifu2x=0
|
2020-11-25 15:58:55 +01:00
|
|
|
in_telegram=0
|
2020-12-31 11:07:55 +01:00
|
|
|
in_element=0
|
2020-08-28 21:46:34 +02:00
|
|
|
|
2020-06-14 18:00:55 +02:00
|
|
|
cmd=(dialog --separate-output --checklist "Select other programs:" 22 76 16)
|
2020-06-12 16:23:06 +02:00
|
|
|
options=(1 "VirtManager" off # any option can be set to default to "on"
|
|
|
|
2 "Steam" off
|
|
|
|
3 "Lutris" off
|
|
|
|
4 "Blender" off
|
|
|
|
5 "Krita" off
|
|
|
|
6 "Youtube-dl" off
|
2020-06-14 18:00:55 +02:00
|
|
|
7 "Discord" on
|
2020-06-12 16:23:06 +02:00
|
|
|
8 "Handbrake" off
|
2020-08-23 20:41:31 +02:00
|
|
|
9 "Gimp" off
|
|
|
|
10 "Audacity" off
|
|
|
|
11 "MangoHud" off
|
|
|
|
12 "Easystroke" on
|
|
|
|
13 "Liferea" off
|
2020-12-31 11:07:55 +01:00
|
|
|
14 "Fractal" off
|
2020-11-25 15:58:55 +01:00
|
|
|
15 "Bettergram" off
|
|
|
|
16 "Waifu2x" off
|
2020-12-31 11:07:55 +01:00
|
|
|
17 "Telegram" on
|
|
|
|
18 "Element" on)
|
2020-06-12 16:23:06 +02:00
|
|
|
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
|
2020-08-28 21:46:34 +02:00
|
|
|
clear
|
2020-06-12 16:23:06 +02:00
|
|
|
for choice in $choices
|
|
|
|
do
|
|
|
|
case $choice in
|
|
|
|
1)
|
2020-08-28 21:46:34 +02:00
|
|
|
in_virtmanager=1
|
2020-11-23 15:00:29 +01:00
|
|
|
printf '%s\n' 'qemu' 'virt-manager' >> selectedpkgs.txt
|
2020-06-12 16:23:06 +02:00
|
|
|
;;
|
|
|
|
2)
|
2020-08-28 21:46:34 +02:00
|
|
|
in_steam=1
|
2020-11-23 15:00:29 +01:00
|
|
|
printf '%s\n' 'steam' 'steam-native-runtime' >> selectedpkgs.txt
|
2020-06-12 16:23:06 +02:00
|
|
|
;;
|
|
|
|
3)
|
2020-08-28 21:46:34 +02:00
|
|
|
in_lutris=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "lutris" >> selectedpkgs.txt
|
2020-06-12 16:23:06 +02:00
|
|
|
;;
|
|
|
|
4)
|
2020-08-28 21:46:34 +02:00
|
|
|
in_blender=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "blender" >> selectedpkgs.txt
|
2020-06-12 16:23:06 +02:00
|
|
|
;;
|
|
|
|
5)
|
2020-08-28 21:46:34 +02:00
|
|
|
in_krita=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "krita" >> selectedpkgs.txt
|
2020-06-12 16:23:06 +02:00
|
|
|
;;
|
|
|
|
6)
|
2020-09-18 16:47:29 +02:00
|
|
|
in_youtubedl=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "youtube-dl" >> selectedpkgs.txt
|
2020-06-12 16:23:06 +02:00
|
|
|
;;
|
|
|
|
7)
|
2020-08-28 21:46:34 +02:00
|
|
|
in_discord=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "discord" >> selectedpkgs.txt
|
2020-06-12 16:23:06 +02:00
|
|
|
;;
|
|
|
|
8)
|
2020-08-28 21:46:34 +02:00
|
|
|
in_handbrake=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "handbrake" >> selectedpkgs.txt
|
2020-06-12 16:23:06 +02:00
|
|
|
;;
|
|
|
|
9)
|
2020-11-05 20:27:04 +01:00
|
|
|
in_gimp=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "gimp" >> selectedpkgs.txt
|
2020-06-12 16:23:06 +02:00
|
|
|
;;
|
2020-08-23 20:41:31 +02:00
|
|
|
10)
|
2020-08-28 21:46:34 +02:00
|
|
|
in_audacity=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "audacity" >> selectedpkgs.txt
|
2020-06-12 16:23:06 +02:00
|
|
|
;;
|
2020-08-23 20:41:31 +02:00
|
|
|
11)
|
2020-11-23 15:00:29 +01:00
|
|
|
# REVIEW special case
|
2020-08-28 21:46:34 +02:00
|
|
|
in_mangohud=1
|
2020-06-12 16:23:06 +02:00
|
|
|
;;
|
2020-08-23 20:41:31 +02:00
|
|
|
12)
|
2020-08-28 21:46:34 +02:00
|
|
|
in_easystrokes=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "easystroke" >> aurselectedpkgs.txt
|
2020-06-17 10:04:27 +02:00
|
|
|
;;
|
2020-08-23 20:41:31 +02:00
|
|
|
13)
|
2020-08-28 21:46:34 +02:00
|
|
|
in_liferea=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "liferea" >> aurselectedpkgs.txt
|
2020-06-21 19:17:40 +02:00
|
|
|
;;
|
2020-08-23 20:41:31 +02:00
|
|
|
14)
|
2020-11-15 10:56:25 +01:00
|
|
|
in_fractal=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "fractal" >> selectedpkgs.txt
|
2020-07-17 11:30:11 +02:00
|
|
|
;;
|
2020-08-23 20:41:31 +02:00
|
|
|
15)
|
2020-08-28 21:46:34 +02:00
|
|
|
in_bettergram=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "bettergram" >> aurselectedpkgs.txt
|
2020-11-05 20:27:04 +01:00
|
|
|
;;
|
|
|
|
16)
|
|
|
|
in_waifu2x=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "waifu2x-ncnn-vulkan" >> aurselectedpkgs.txt
|
2020-07-30 17:01:12 +02:00
|
|
|
;;
|
2020-11-25 15:58:55 +01:00
|
|
|
17)
|
|
|
|
in_telegram=1
|
|
|
|
echo "telegram-desktop" >> selectedpkgs.txt
|
|
|
|
;;
|
2020-12-31 11:07:55 +01:00
|
|
|
18)
|
|
|
|
in_element=1
|
|
|
|
echo "element-desktop" >> selectedpkgs.txt
|
|
|
|
;;
|
2020-06-12 16:23:06 +02:00
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2020-08-29 13:52:27 +02:00
|
|
|
in_acpufreq=0
|
|
|
|
|
|
|
|
cmd=(dialog --separate-output --checklist "Performance and Battery life" 22 76 16)
|
|
|
|
options=(1 "auto-cpufreq" off)
|
|
|
|
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
|
|
|
|
clear
|
|
|
|
for choice in $choices
|
|
|
|
do
|
|
|
|
case $choice in
|
|
|
|
1)
|
|
|
|
in_acpufreq=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "auto-cpufreq-git" >> aurselectedpkgs.txt
|
|
|
|
# TODO Handle rest of installation
|
2020-08-29 13:52:27 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2020-09-18 19:28:12 +02:00
|
|
|
in_doomemacs=0
|
2020-09-09 21:01:58 +02:00
|
|
|
in_vscodium=0
|
2020-09-07 19:50:09 +02:00
|
|
|
|
|
|
|
cmd=(dialog --separate-output --checklist "Code editors" 22 76 16)
|
2020-09-09 21:01:58 +02:00
|
|
|
options=(1 "doom-emacs" off
|
|
|
|
2 "vscodium" off)
|
2020-09-07 19:50:09 +02:00
|
|
|
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
|
|
|
|
clear
|
|
|
|
for choice in $choices
|
|
|
|
do
|
|
|
|
case $choice in
|
|
|
|
1)
|
2020-09-18 19:28:12 +02:00
|
|
|
in_doomemacs=1
|
2020-11-23 15:00:29 +01:00
|
|
|
# TODO sort pacman and AUR packages
|
|
|
|
printf '%s\n' 'git' 'emacs' 'ripgrep' 'fd' 'pandoc' 'shellcheck' 'python-pipenv' 'python-isort' 'python-pytest' 'python-rednose' 'pychecker' 'texlive-core' >> aurselectedpkgs.txt
|
|
|
|
# TODO handle rest of installation
|
2020-09-07 19:50:09 +02:00
|
|
|
;;
|
2020-09-09 21:01:58 +02:00
|
|
|
2)
|
|
|
|
in_vscodium=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "vscodium-bin" >> aurselectedpkgs.txt
|
2020-09-09 21:01:58 +02:00
|
|
|
;;
|
2020-09-07 19:50:09 +02:00
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2020-11-13 07:58:44 +01:00
|
|
|
in_teams=0
|
|
|
|
in_slack=0
|
|
|
|
|
2020-11-13 08:02:58 +01:00
|
|
|
cmd=(dialog --separate-output --checklist "School and work communication" 22 76 16)
|
2020-11-13 07:58:44 +01:00
|
|
|
options=(1 "teams" off
|
|
|
|
2 "slack" off)
|
|
|
|
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
|
|
|
|
clear
|
|
|
|
for choice in $choices
|
|
|
|
do
|
|
|
|
case $choice in
|
|
|
|
1)
|
|
|
|
in_teams=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "teams" >> aurselectedpkgs.txt
|
2020-11-13 07:58:44 +01:00
|
|
|
;;
|
|
|
|
2)
|
|
|
|
in_slack=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "slack-desktop" >> aurselectedpkgs.txt
|
2020-11-13 07:58:44 +01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2020-08-28 21:46:34 +02:00
|
|
|
in_pkgstats=0
|
|
|
|
|
2020-07-17 21:14:06 +02:00
|
|
|
cmd=(dialog --separate-output --checklist "Report installed packages?" 22 76 16)
|
|
|
|
options=(1 "pkgstats" off)
|
|
|
|
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
|
2020-08-28 21:46:34 +02:00
|
|
|
clear
|
2020-07-17 21:14:06 +02:00
|
|
|
for choice in $choices
|
|
|
|
do
|
|
|
|
case $choice in
|
|
|
|
1)
|
2020-08-28 21:46:34 +02:00
|
|
|
in_pkgstats=1
|
2020-11-23 15:00:29 +01:00
|
|
|
echo "pkgstats" >> selectedpkgs.txt
|
2020-07-17 21:14:06 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2020-12-25 18:24:51 +01:00
|
|
|
# Packages installed on different systems
|
|
|
|
in_arco_pc=0
|
|
|
|
in_arco_hp=0
|
2020-11-07 10:39:59 +01:00
|
|
|
|
2020-12-25 18:24:51 +01:00
|
|
|
cmd=(dialog --separate-output --checklist "Install system specific packages?" 22 76 16)
|
|
|
|
options=(1 "Arco PC" off
|
|
|
|
2 "Arco HP" off)
|
2020-11-07 10:39:59 +01:00
|
|
|
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
|
|
|
|
clear
|
|
|
|
for choice in $choices
|
|
|
|
do
|
|
|
|
case $choice in
|
|
|
|
1)
|
2020-12-25 18:24:51 +01:00
|
|
|
in_arco_pc=1
|
|
|
|
;;
|
|
|
|
2)
|
|
|
|
in_arco_hp=1
|
2020-11-07 10:39:59 +01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2020-08-28 21:46:34 +02:00
|
|
|
#uninstalling unused packages
|
|
|
|
echo Uninstalling unused packages
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -Rns - < "$HOME/setup/uninstall.txt"
|
2020-08-28 21:46:34 +02:00
|
|
|
echo Uninstalled unused packages
|
|
|
|
|
|
|
|
#update stuff
|
|
|
|
echo Updating packages
|
2020-11-14 14:04:06 +01:00
|
|
|
paru -Syyu
|
2020-08-28 21:46:34 +02:00
|
|
|
echo Updated packages
|
|
|
|
|
|
|
|
#pacman programs
|
2020-06-12 16:23:06 +02:00
|
|
|
echo Installing default pacman programs
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed - < "$HOME/setup/officialpkgs.txt"
|
2020-06-12 16:23:06 +02:00
|
|
|
echo Installed official programs
|
2020-05-07 08:43:48 +02:00
|
|
|
|
2020-11-23 14:06:24 +01:00
|
|
|
# audio
|
|
|
|
echo Installing audio programs
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed - < "$HOME/setup/audiopkgs.txt"
|
2020-11-23 14:06:24 +01:00
|
|
|
echo Installed audio programs
|
|
|
|
|
2020-10-31 10:30:26 +01:00
|
|
|
# REVIEW Patched neofetch version to remove Color codes
|
|
|
|
git clone https://github.com/RealStickman/neofetch
|
2020-11-05 20:08:50 +01:00
|
|
|
cd neofetch
|
2020-10-31 10:30:26 +01:00
|
|
|
sudo make install
|
2020-11-05 20:08:50 +01:00
|
|
|
cd ..
|
2020-11-04 21:53:55 +01:00
|
|
|
rm -rf neofetch
|
2020-10-31 10:30:26 +01:00
|
|
|
|
2020-12-19 21:43:09 +01:00
|
|
|
# install paru
|
2020-12-19 21:45:48 +01:00
|
|
|
if [[ $(pacman -Q | grep yay) ]] && [[ ! $(pacman -Q | grep paru) ]]; then
|
2020-12-19 21:43:09 +01:00
|
|
|
echo "Installing paru"
|
2020-12-19 21:49:27 +01:00
|
|
|
yay -S paru-bin
|
2020-12-19 21:43:09 +01:00
|
|
|
fi
|
|
|
|
|
2020-05-07 08:43:48 +02:00
|
|
|
#AUR
|
2020-06-12 16:23:06 +02:00
|
|
|
echo Installing default AUR programs
|
2020-12-19 21:32:22 +01:00
|
|
|
paru -S --needed - < "$HOME/setup/aurpkgs.txt"
|
2020-06-12 16:23:06 +02:00
|
|
|
echo Installed AUR programs
|
2020-03-01 10:38:40 +01:00
|
|
|
|
2020-02-29 16:00:06 +01:00
|
|
|
#install wine
|
2020-06-12 16:23:06 +02:00
|
|
|
echo Installing wine
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed - < "$HOME/setup/winepkgs.txt"
|
2020-06-12 16:23:06 +02:00
|
|
|
echo Installed wine
|
2020-02-29 13:18:14 +01:00
|
|
|
|
2020-08-28 21:46:34 +02:00
|
|
|
###################
|
|
|
|
#selected programs#
|
|
|
|
###################
|
|
|
|
echo Installing selected programs
|
|
|
|
|
|
|
|
#DEs & WMs
|
|
|
|
if [ $in_xfce -eq 1 ]; then
|
|
|
|
echo "Installing xfce"
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed xfce4
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
|
|
|
echo "Skipping xfce"
|
|
|
|
fi
|
|
|
|
|
2020-09-18 16:47:29 +02:00
|
|
|
if [ $in_i3gaps -eq 1 ]; then
|
2020-08-28 21:46:34 +02:00
|
|
|
echo "Installing i3-gaps"
|
2020-11-14 13:49:32 +01:00
|
|
|
sudo pacman -S --needed i3-gaps
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
|
|
|
echo "Skipping i3-gaps"
|
|
|
|
fi
|
|
|
|
|
|
|
|
#browsers
|
|
|
|
if [ $in_firefox -eq 1 ]; then
|
|
|
|
echo "Installing Firefox"
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed firefox
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
|
|
|
echo "Skipping Firefox"
|
|
|
|
fi
|
|
|
|
|
2020-11-10 22:02:33 +01:00
|
|
|
if [ $in_chromium -eq 1 ]; then
|
|
|
|
echo "Installing Chromium"
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed chromium
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
2020-11-10 22:02:33 +01:00
|
|
|
echo "Skipping Chromium"
|
2020-08-28 21:46:34 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $in_netsurf -eq 1 ]; then
|
|
|
|
echo "Installing Netsurf"
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed netsurf
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
|
|
|
echo "Skipping Netsurf"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $in_icecat -eq 1 ]; then
|
|
|
|
echo "Installing Icecat"
|
2020-12-19 21:32:22 +01:00
|
|
|
paru -S --needed icecat-bin
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
|
|
|
echo "Skipping Icecat"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $in_tor -eq 1 ]; then
|
|
|
|
echo "Installing Tor"
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed torbrowser-launcher
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
|
|
|
echo "Skipping Tor"
|
|
|
|
fi
|
|
|
|
|
|
|
|
#other programs
|
|
|
|
if [ $in_virtmanager -eq 1 ]; then
|
|
|
|
echo "Installing VirtManager"
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed qemu virt-manager
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
|
|
|
echo "Skipping VirtManager"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $in_steam -eq 1 ]; then
|
|
|
|
echo "Installing Steam"
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed steam steam-native-runtime
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
|
|
|
echo "Skipping Steam"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $in_lutris -eq 1 ]; then
|
|
|
|
echo "Installing Lutris"
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed lutris
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
|
|
|
echo "Skipping Lutris"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $in_blender -eq 1 ]; then
|
|
|
|
echo "Installing Blender"
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed blender
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
|
|
|
echo "Skipping Blender"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $in_krita -eq 1 ]; then
|
|
|
|
echo "Installing Krita"
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed krita
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
|
|
|
echo "Skipping Krita"
|
|
|
|
fi
|
|
|
|
|
2020-09-18 16:47:29 +02:00
|
|
|
if [ $in_youtubedl -eq 1 ]; then
|
2020-08-28 21:46:34 +02:00
|
|
|
echo "Installing Youtube-dl"
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed youtube-dl
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
|
|
|
echo "Skipping Youtube-dl"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $in_discord -eq 1 ]; then
|
|
|
|
echo "Installing Discord"
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed discord
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
|
|
|
echo "Skipping Discord"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $in_handbrake -eq 1 ]; then
|
|
|
|
echo "Installing Handbrake"
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed handbrake
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
|
|
|
echo "Skipping Handbrake"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $in_gimp -eq 1 ]; then
|
|
|
|
echo "Installing Gimp"
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed gimp
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
|
|
|
echo "Skipping Gimp"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $in_audacity -eq 1 ]; then
|
|
|
|
echo "Installing Audacity"
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed audacity
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
|
|
|
echo "Skipping Audacity"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $in_mangohud -eq 1 ]; then
|
|
|
|
echo "Installing MangoHud"
|
|
|
|
git clone --recurse-submodules https://github.com/flightlessmango/MangoHud.git
|
|
|
|
./MangoHud/build.sh install
|
|
|
|
else
|
|
|
|
echo "Skipping MangoHud"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $in_easystrokes -eq 1 ]; then
|
|
|
|
echo "Installing Easystrokes"
|
2020-12-19 21:32:22 +01:00
|
|
|
paru -S --needed easystroke
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
|
|
|
echo "Skipping Easystrokes"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $in_liferea -eq 1 ]; then
|
|
|
|
echo "Installing Liferea"
|
2020-12-19 21:32:22 +01:00
|
|
|
paru -S --needed liferea
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
|
|
|
echo "Skipping Liferea"
|
|
|
|
fi
|
|
|
|
|
2020-11-15 10:56:25 +01:00
|
|
|
if [ $in_fractal -eq 1 ]; then
|
|
|
|
echo "Installing Fractal"
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed fractal
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
2020-11-15 10:56:25 +01:00
|
|
|
echo "Skipping Fractal"
|
2020-08-28 21:46:34 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $in_bettergram -eq 1 ]; then
|
|
|
|
echo "Installing Bettergram"
|
2020-12-19 21:32:22 +01:00
|
|
|
paru -S --needed bettergram
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
|
|
|
echo "Skipping Bettergram"
|
|
|
|
fi
|
|
|
|
|
2020-11-05 20:27:04 +01:00
|
|
|
if [ $in_waifu2x -eq 1 ]; then
|
|
|
|
echo "Installing Waifu2x"
|
2020-12-19 21:32:22 +01:00
|
|
|
paru -S --needed waifu2x-ncnn-vulkan
|
2020-11-05 20:27:04 +01:00
|
|
|
else
|
|
|
|
echo "Skipping Waifu2x"
|
|
|
|
fi
|
|
|
|
|
2020-11-25 15:58:55 +01:00
|
|
|
if [ $in_telegram -eq 1 ]; then
|
|
|
|
echo "Installing Telegram"
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed telegram-desktop
|
2020-11-25 15:58:55 +01:00
|
|
|
else
|
|
|
|
echo "Skipping Telegram"
|
|
|
|
fi
|
|
|
|
|
2021-01-04 12:56:30 +01:00
|
|
|
if [ $in_element -eq 1 ]; then
|
2020-12-31 11:07:55 +01:00
|
|
|
echo "Installing Element"
|
|
|
|
sudo pacman -S --needed element-desktop
|
|
|
|
else
|
|
|
|
echo "Skipping Element"
|
|
|
|
fi
|
|
|
|
|
2020-08-29 13:52:27 +02:00
|
|
|
#performance and battery life
|
|
|
|
if [ $in_acpufreq -eq 1 ]; then
|
|
|
|
echo "Installing auto-cpufreq"
|
2020-12-19 21:32:22 +01:00
|
|
|
paru -S --needed auto-cpufreq-git
|
2020-08-29 13:52:27 +02:00
|
|
|
sudo auto-cpufreq --install
|
|
|
|
sudo systemctl start auto-cpufreq
|
|
|
|
sudo systemctl enable auto-cpufreq
|
|
|
|
else
|
|
|
|
echo "Skipping auto-cpufreq"
|
|
|
|
fi
|
|
|
|
|
2020-11-13 08:02:58 +01:00
|
|
|
#text editors
|
2020-09-18 19:28:12 +02:00
|
|
|
if [ $in_doomemacs -eq 1 ]; then
|
2020-09-07 19:50:09 +02:00
|
|
|
echo "Installing doom-emacs"
|
2020-12-19 21:32:22 +01:00
|
|
|
paru -S --needed git emacs ripgrep fd pandoc shellcheck python-pipenv python-isort python-pytest python-rednose pychecker texlive-core
|
2020-09-07 19:50:09 +02:00
|
|
|
git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
|
|
|
|
~/.emacs.d/bin/doom install
|
2020-09-07 19:58:16 +02:00
|
|
|
export PATH="$PATH":$HOME/.emacs.d/bin
|
2020-09-07 19:50:09 +02:00
|
|
|
else
|
|
|
|
echo "Skipping doom-emacs"
|
|
|
|
fi
|
|
|
|
|
2020-09-09 21:01:58 +02:00
|
|
|
if [ $in_vscodium -eq 1 ]; then
|
|
|
|
echo "Installing vscodium"
|
2020-12-19 21:32:22 +01:00
|
|
|
paru -S --needed vscodium-bin
|
2020-09-09 21:01:58 +02:00
|
|
|
else
|
|
|
|
echo "Skipping vscodium"
|
|
|
|
fi
|
|
|
|
|
2020-11-13 08:02:58 +01:00
|
|
|
#other social stuff
|
2020-11-13 07:58:44 +01:00
|
|
|
if [ $in_teams -eq 1 ]; then
|
|
|
|
echo "Installing teams"
|
2020-12-19 21:32:22 +01:00
|
|
|
paru -S --needed teams
|
2020-11-13 07:58:44 +01:00
|
|
|
else
|
|
|
|
echo "Skipping teams"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $in_slack -eq 1 ]; then
|
|
|
|
echo "Installing slack"
|
2020-12-19 21:32:22 +01:00
|
|
|
paru -S --needed slack-desktop
|
2020-11-13 07:58:44 +01:00
|
|
|
else
|
|
|
|
echo "Skipping slack"
|
|
|
|
fi
|
|
|
|
|
2020-08-28 21:46:34 +02:00
|
|
|
#stats
|
|
|
|
if [ $in_pkgstats -eq 1 ]; then
|
|
|
|
echo "Installing pkgstats"
|
2020-12-19 21:32:22 +01:00
|
|
|
sudo pacman -S --needed pkgstats
|
2020-08-28 21:46:34 +02:00
|
|
|
else
|
|
|
|
echo "Skipping pkgstats"
|
|
|
|
fi
|
|
|
|
|
2020-12-25 18:24:51 +01:00
|
|
|
# other system configs
|
|
|
|
# arco pc
|
|
|
|
if [ $in_arco_pc -eq 1 ]; then
|
|
|
|
echo "Installing arco pc packages"
|
|
|
|
paru -S --needed - < "$HOME/setup/arco-pc-packages.txt"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# arco hp
|
|
|
|
if [ $in_arco_hp -eq 1 ]; then
|
|
|
|
echo "Installing arco hp packages"
|
|
|
|
paru -S --needed - < "$HOME/setup/arco-hp-packages.txt"
|
2020-11-07 10:39:59 +01:00
|
|
|
fi
|
|
|
|
|
2020-09-27 14:06:50 +02:00
|
|
|
#change shell
|
2020-09-27 14:07:43 +02:00
|
|
|
chsh -s /usr/bin/fish "$USER"
|
2020-09-27 14:06:50 +02:00
|
|
|
|
2020-09-02 10:51:45 +02:00
|
|
|
#enable vnstat
|
|
|
|
sudo systemctl enable vnstat
|
|
|
|
sudo systemctl start vnstat
|
|
|
|
|
2020-11-17 15:34:39 +01:00
|
|
|
# enable firewall
|
|
|
|
echo "Enabling Firewall"
|
|
|
|
sudo ufw enable
|
2020-11-23 11:07:59 +01:00
|
|
|
sudo systemctl enable ufw
|
|
|
|
sudo systemctl start ufw
|
2020-11-17 15:34:39 +01:00
|
|
|
|
2020-12-20 21:05:09 +01:00
|
|
|
# update fonts cache
|
|
|
|
fc-cache -f
|
|
|
|
|
2021-01-04 17:24:43 +01:00
|
|
|
# download grub theme
|
|
|
|
git clone https://github.com/xenlism/Grub-themes.git
|
|
|
|
bash Grub-themes/xenlism-grub-arch-1080p/install.sh
|
|
|
|
|
2020-02-28 22:40:18 +01:00
|
|
|
#Changes to home folder automatically now, no need to be extra careful anymore.
|
2020-04-18 23:25:41 +02:00
|
|
|
git clone https://gitlab.com/RealStickman-arcolinux/config
|
2020-04-16 08:51:26 +02:00
|
|
|
echo Finished downloading config
|
2020-02-29 13:18:14 +01:00
|
|
|
|
2020-11-17 21:09:57 +01:00
|
|
|
# Download git repos
|
2020-12-10 08:20:09 +01:00
|
|
|
bash ~/config/scripts/sc-git-pull
|
2020-11-17 21:09:57 +01:00
|
|
|
|
2020-02-29 13:18:14 +01:00
|
|
|
#cleanup
|
2020-04-18 23:25:41 +02:00
|
|
|
rm -rf ~/setup
|
2020-08-28 21:46:34 +02:00
|
|
|
echo Removed setup files
|
2020-02-29 13:18:14 +01:00
|
|
|
|
|
|
|
#downloading config
|
2020-04-16 08:51:26 +02:00
|
|
|
echo Setting config
|
2020-06-15 20:50:25 +02:00
|
|
|
bash ~/config/install.sh
|
2020-07-17 21:14:06 +02:00
|
|
|
pkgstats
|
2020-07-30 11:00:22 +02:00
|
|
|
echo Finished everything
|
2020-11-17 21:09:57 +01:00
|
|
|
exit 0
|