-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
114 lines (74 loc) · 3.24 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#!/usr/bin/env bash
# shellcheck disable=SC1087 disable=SC2034 disable=SC2164
# <-- Variables -->
# Colors
green="\033[32m"
red="\033[31m"
reset="\033[0m"
# <-- Functions -->
function log() {
msg=$1
echo -e "\n$green[+]$reset $msg\n"
}
function error() {
msg=$1
echo -e "\n$green[!]$reset $msg\n"
}
# <-- Main -->
# log "Configuring grub"
# sudo sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="quiet"/GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=0 udev.log_level=0 vt.global_cursor_default==0 console=tty2"/g' /etc/default/grub
# sudo sed -i 's/GRUB_TIMEOUT="3"/GRUB_TIMEOUT="0"/g' /etc/default/grub
# sudo sed -i 's/GRUB_GFXMODE="1024x768,800x600"/GRUB_GFXMODE=1920x1080/g' /etc/default/grub
# sudo update-grub
log "Initiating and populating pacman key"
sudo pacman-key --init
sudo pacman-key --populate artix
log "Fetching arch mirrorlist"
sudo curl -s "https://archlinux.org/mirrorlist/?country=NZ&protocol=https&ip_version=4&use_mirror_status=on" | sed -e "s/^#Server/Server/" -e "/^#/d" | sudo tee /etc/pacman.d/mirrorlist-arch
log "Fetching pacman config"
sudo cp cfg/pacman/pacman.conf /etc/pacman.conf
log "Installing Chaotic AUR"
sudo pacman -Syyu
sudo pacman-key --recv-key FBA220DFC880C036 --keyserver keyserver.ubuntu.com
sudo pacman-key --lsign-key FBA220DFC880C036
sudo pacman-key --populate artix # Populating artix again because it fucks itself for some reason
sudo pacman -U "https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst" "https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst"
echo -e "\n[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist" | sudo tee -a /etc/pacman.conf
log "Updating pacman after installing Chaotic"
sudo pacman -Syyu
log "Installing dependencies for most programs"
sudo pacman -S base-devel git wget artix-archlinux-support
sudo pacman-key --populate archlinux
log "Installing yay"
git clone https://aur.archlinux.org/yay.git
cd yay || exit
makepkg -si
rm -rf yay
log "Installing programs"
yay -S kitty flameshot discord spotify telegram-desktop-bin visual-studio-code-bin github-desktop-bin firefox minecraft-launcher vlc obs-studio-git bleachbit-git cleanerml-git fabric-installer spicetify-cli steam neovim
log "Uninstalling unneeded programs"
sudo pacman -R falkon konqueror plasma-workspace-wallpapers gwenview okular mpv
log "Install programming languages"
yay -S rustup
rustup default stable
log "Installing dependencies"
yay -S appmenu-gtk-module gtk-engines gtk-engine-murrine gnome-themes-extra libappindicator-gtk2 libappindicator-gtk3
log "Installing lightly application style"
sudo pacman -S lightly-qt
log "Installing fonts"
yay -S ttf-apple-emoji ttf-firacode-nerd ttf-ubuntu-mono-nerd inter-font
log "Installing adblock"
yay -S blokator
sudo blokator --sync
sudo blokator --apply
log "Installing things needed for my rice"
yay -S betterlockscreen brightnessctl bspwm dunst eww feh file-roller gvfs jq kripton-theme-git lxappearance maim moreutils pamixer picom-animations-git playerctl polybar-git rofi sxhkd thunar xdg-user-dirs xdo xorg xqp
# log "Installing the actual configuration files"
# for dir in "cfg/"; do
# if [[ $dir != "pacman" ]];
# then
# cp "$dir" "$HOME"/.config/"$dir"
# fi
# done
log "Clear cache"
sudo rm -rf "$HOME"/.cache/*