-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·106 lines (93 loc) · 2.62 KB
/
setup.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
#!/usr/bin/env bash
set -o errexit
set -o errtrace
set -o pipefail
set -o nounset
shopt -s globstar
shopt -s nullglob
set -o xtrace
install_base () {
sudo pacman -S git devtools base-devel pacman-contrib man
}
install_yay () {
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd ..
rm -rf yay
yay -Y --gendb
yay -Syu --devel
yay -Y --devel --save
}
install_goodies () {
yay -S --needed \
docker docker-buildx docker-compose \
zsh rate-mirrors \
parallel neofetch bind tig nvm jq acpi htop inotify-tools \
rustup lldb tfenv \
ghostty micro tldr \
ttf-ubuntu-font-family ttf-dejavu \
openvpn networkmanager-openvpn \
nnn nmap
}
setup_zsh () {
yay -S --needed zsh-syntax-highlighting
chsh -s $(which zsh)
sudo chsh -s $(which zsh)
sudo cp ~/.zshrc /root/.zshrc
sudo cp ~/.config/zsh-prompt.sh /root/.config
}
install_ui_things () {
yay -S --needed xclip vscodium-bin \
blackbox-terminal numix-square-icon-theme \
devilspie2 xss-lock xsecurelock \
seahorse brave-bin \
mpc-qt vlc qbittorrent subtitleeditor
sudo ln -s /usr/bin/codium /usr/bin/code
}
install_gnome () {
yay -S --needed $(yay -Sgq gnome | grep -vf script/gnome-exclude) xdg-desktop-portal-gtk gnome-terminal gnome-tweaks dconf-editor gnome-browser-connector
yay -Rnscu xdg-desktop-portal-gnome
}
setup_gnome () {
yay -S --needed \
autoconf \
automake \
inkscape \
gdk-pixbuf2 \
glib2 \
libxml2 \
pkgconf \
sassc \
parallel \
meson gobject-introspection vala
git clone https://github.com/qwelias/gnome-patch /tmp/gnome-patch
cd /tmp/gnome-patch
./patch.sh
curl -L https://extensions.gnome.org/extension-data/trayIconsReloadedselfmade.pl.v29.shell-extension.zip > tray.zip
gnome-extensions install tray.zip
gsettings set org.gnome.shell disable-user-extensions true
gsettings set org.gnome.shell disable-user-extensions false
}
setup_keyring () {
sudo sh -c 'printf "\npassword optional pam_gnome_keyring.so" >> /etc/pam.d/passwd'
sudo sh -c 'printf "\nauth optional pam_gnome_keyring.so\nsession optional pam_gnome_keyring.so auto_start" >> /etc/pam.d/login'
echo '\e[35mAfter logging in next time set Login keyring as default manually using Seahorse'
}
desktop () {
install_base
install_yay
install_goodies
setup_zsh
install_gnome
install_ui_things
setup_gnome
setup_keyring
}
server () {
install_base
install_yay
install_goodies
setup_zsh
}
"${1:?missing first arg}"