forked from trxxshed/archinstall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.sh
69 lines (58 loc) · 2.42 KB
/
init.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
#!/usr/bin/env bash
# Package Sync & Init Installation
sudo pacman -Syyu --noconfirm
# Desktop Env
sudo pacman -S --noconfirm --needed xorg xorg-server xorg-apps bspwm sxhkd polybar nitrogen kitty lightdm lightdm-gtk-greeter dmenu rofi
# Misc Tools
sudo pacman -S --noconfirm --needed nano btop neovim htop tree neofetch cmatrix python python-pip python-pywal pulseaudio-bluetooth sof-firmware thunar discord s-tui git
# dot files
mkdir /home/$USER/Downloads
cd /home/$USER/Downloads
git clone https://github.com/gentoolman/bspwmdots
cd
cp -rf Downloads/bspwmdots/.config /home/$USER/
cp -rf Downloads/bspwmdots/.bashrc /home/$USER/
cp -rf Downloads/bspwmdots/.zshrc /home/$USER/
cp -rf Downloads/bspwmdots/.Xresources /home/$USER/
chmod +x .config/bspwm/bspwmrc
chmod +x .config/bspwm/pywal.sh
chmod +x .config/polybar/launch.sh
# Systemd Symlinks & priviliges
read -p "[Enter your username]: " username
sudo systemctl enable lightdm.service
sudo systemctl enable bluetooth.service
sudo systemctl start bluetooth.service
sudo usermod -a -G video $username
echo "ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chgrp video $sys$devpath/brightness", RUN+="/bin/chmod g+w $sys$devpath/brightness"" | sudo tee /etc/udev/rules.d/backlight2.rules
# YAY
sudo pacman -S --needed --noconfirm git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si
yay -S picom-ibhagwan-git
# zsh syntax highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
# echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
# no need for this line, because it is already written in the .zshrc file
# Fonts
pacman -S --noconfirm ttf-font-awesome
yay -S nerd-fonts-complete --needed --noconfirm
sudo fc-cache -fv
# Tweaking
cd
mv Bilder/ Pictures/
mv Dokumente/ Documents/
mv Schreibtisch/ Desktop/
rm -rf Musik/ Öffentlich/ Videos/ Vorlagen/
cp -rf Downloads/bspwmdots/wallpapers/* Pictures/
# Blackarch
curl -O https://blackarch.org/strap.sh
$ echo 5ea40d49ecd14c2e024deecf90605426db97ea0c strap.sh | sha1sum -c
chmod +x strap.sh
sudo ./strap.sh
rm -rf strap.sh
echo " "
echo " "
echo "###########################################"
echo "# #"
echo "# UNCOMMENT MULTILAB IN /etc/pacman.conf #"
echo "# AFTER THAT do pacman -Syu #"
echo "# #"
echo "###########################################"