-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser-script.sh
executable file
·110 lines (109 loc) · 2.68 KB
/
user-script.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
#!/bin/bash
# sudo no password rights
sudo sed -i 's/^# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers
# pacman parallel downloads
sudo sed -i 's/^#Para/Para/' /etc/pacman.conf
# pacman colors
sudo sed -i 's/^#Color/Color/' /etc/pacman.conf
# enable multilib repo
sudo sed -i "/\[multilib\]/,/Include/"'s/^#//' /etc/pacman.conf
sudo pacman -Sy --noconfirm
# /etc/zshenv needed to make zsh look in ~/.config/zsh/
sudo mkdir -p /etc/zsh
sudo cp -f $(dirname $(realpath "$0"))/etc/zsh/zshenv /etc/zsh
# nvidia generated xorg.conf
sudo cp -f $(dirname $(realpath "$0"))/etc/X11/xorg.conf /etc/X11/
# autologin getty
sudo mkdir -p /etc/systemd/system/[email protected]
sudo cp -f $(dirname $(realpath "$0"))/etc/systemd/system/[email protected]/override.conf /etc/systemd/system/[email protected]
sudo systemctl daemon-reload
# install official repo packages
sudo pacman -S --needed --noconfirm \
amd-ucode \
base-devel \
bat \
bspwm \
cmake \
code \
discord \
dunst \
extra-cmake-modules \
feh \
ffmpegthumbnailer \
firefox \
firefox-dark-reader \
firefox-ublock-origin \
fzf \
gnome-epub-thumbnailer \
imagemagick \
keepassxc \
krita \
libva-vdpau-driver \
linux-headers \
maim \
meson \
mpv \
neofetch \
neovim \
ninja \
noto-fonts \
noto-fonts-cjk \
noto-fonts-emoji \
pacman-contrib \
picom \
poppler \
python-pyqt5 \
ranger \
rofi \
steam \
sxhkd \
ueberzug \
wget \
xclip \
xcolor \
xdotool \
xf86-input-wacom \
xorg-xsetroot \
yt-dlp \
zsh \
zsh-autosuggestions \
zsh-syntax-highlighting \
# copy in config files
mkdir -p ~/.config
cp -rf $(dirname $(realpath "$0"))/.config/* ~/.config
# copy in scripts
mkdir -p ~/.local/bin
cp -rf $(dirname $(realpath "$0"))/.local/bin/* ~/.local/bin
# set wallpaper
mkdir -p ~/img/wallpapers
cp $(dirname $(realpath "$0"))/swamp.jpg ~/img/wallpapers
cp -l ~/img/wallpapers/swamp.jpg ~/img/wallpapers/.current-wall
# install paru
cd /tmp && git clone https://aur.archlinux.org/paru-bin.git
cd paru-bin && makepkg -si
# install aur packages
paru -S --needed --noconfirm \
code-marketplace \
dashbinsh \
dracula-gtk-theme \
dracula-icons-git \
dragon-drag-and-drop-git \
nerd-fonts-jetbrains-mono \
pmount \
polybar \
# make home directories
xdg-user-dirs-update
mkdir -p ~/repo
# install personal st
cd ~/repo && git clone https://github.com/owbosh/st
cd st && sudo make install
# install personal sxiv
cd ~/repo && git clone https://github.com/owbosh/sxiv
cd sxiv && sudo make install
update-desktop-database ~/.local/share/applications
# install ranger icons
cd ~/.config/ranger/plugins/ && git clone https://github.com/alexanderjeurissen/ranger_devicons
# change shell
chsh -s /bin/zsh owbosh
# done
echo "Complete, exit back to the live environment and reboot"