-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy
More file actions
executable file
·74 lines (55 loc) · 1.67 KB
/
deploy
File metadata and controls
executable file
·74 lines (55 loc) · 1.67 KB
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
#!/bin/bash
# replace line endings with a space (for use in package managers)
function fileToList {
echo $(cat $1 | sed ':a;N;$!ba;s/\n/ /g')
}
# install yay, a aur helper
function install_yay {
git clone https://aur.archlinux.org/yay.git
pushd yay
makepkg -si
popd
sudo rm -dRf yay/
}
# create symlinks
ln -sfn $PWD/.xinitrc ~/.xinitrc
ln -sfn $PWD/.xprofil ~/.xprofil
ln -sfn $PWD/.zshrc ~/.zshrc
ln -sfn $PWD/Wallpapers ~/Pictures/Wallpapers
# make xinitrc launch file executable
chmod +x $PWD/.xinitrc
# symlinks for .config dirs
for dir in $PWD/config/*/; do
ln -sfn $dir ~/.config
done
# create mirrorlist
sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
sudo curl "https://www.archlinux.org/mirrorlist/?country=AT&protocol=http&protocol=https&ip_version=4" --output /etc/pacman.d/mirrorlist
sudo sed -i 's/^#Server/Server/' /etc/pacman.d/mirrorlist
sudo rankmirrors -n 6 /etc/pacman.d/mirrorlist > /etc/pacman.d/mirrorlist
# enable Multilib
#/etc/pacman.conf
#[multilib]
#Include = /etc/pacman.d/mirrorlist
sudo pacman -Syu --noconfirm
yay -Syu --noconfirm
# install requirements
dep=$(fileToList dependencies/pacman.txt)
echo $dep
sudo pacman --noconfirm -S
vscode/setup.sh
yay || install_yay || exit 1
aurDep=$(fileToList dependencies/aur.txt)
echo $aurDep
yay -S $aurDep --noconfirm
# Enable ly login manager
sudo systemctl enable ly.service
# create betterlockscreen image cache
betterlockscreen -u ~/Pictures/Wallpapers/
# enable betterlockscreen on suspend
sudo systemctl enable betterlockscreen@$USER
#change shell to zsh
chsh -s /usr/bin/zsh
# make polybar launch file executable
chmod +x ~/.config/polybar/launch.sh
exit 0