-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
54 lines (46 loc) · 1.59 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
#!/bin/sh
# Colors
NOCOLOR='\033[0m'
ORANGE='\033[0;33m'
GREEN='\033[0;32m'
# Package List
packages=(alacritty bat bluez bluez-utils exa firefox grim kdeconnect nodejs pulseaudio-bluetooth qbittorrent reflector rustup rust-analyzer slurp sway telegram-desktop waybar wdisplays xdg-desktop-portal xdg-desktop-portal-wlr yarn zathura zathura-pdf-mupdf zsh zsh-autosuggestions zsh-completions zsh-theme-powerlevel10k)
# Package Install
echo "${ORANGE}Installing packages${NOCOLOR}"
for i in "${packages[@]}"
do
pacman -Qq $i 2>/dev/null || sudo pacman -S --noconfirm $i
done
echo "${GREEN}Installed${NOCOLOR}"
# Zsh
echo "${ORANGE}Changing Shell${NOCOLOR}"
[[ "$SHELL" == *"zsh"* ]] || chsh -s /bin/zsh
echo "${GREEN}Shell changed to zsh${NOCOLOR}"
# Symlink
echo "${ORANGE}Symlinking dotfiles${NOCOLOR}"
sym=(.config/{alacritty,nvim,sway,waybar} .fonts .p10k.zsh .zshrc)
for i in "${sym[@]}"
do
if [ -e $i ]
then
rm -rf $HOME/$i
ln -s $PWD/$i $HOME/$i
fi
done
echo "${GREEN}Symlink done${NOCOLOR}"
# Wallpaper
echo "${ORANGE}Changing wallpaper${NOCOLOR}"
[ ! -e ~/Pictures/wallpaper.jpg ] || rm -rf ~/Pictures/wallpaper.jpg
[ -e ~/Pictures ] || mkdir ~/Pictures
ln -s $PWD/wallpaper.jpg ~/Pictures/wallpaper.jpg
echo "${GREEN}Default wallpaper linked${NOCOLOR}"
# Rust
echo "${ORANGE}Installing rust stable toolchain${NOCOLOR}"
rustup toolchain install stable
echo "${GREEN}Rust installed${NOCOLOR}"
# Time
echo "${ORANGE}Setting timezone/time${NOCOLOR}"
sudo systemctl --now enable systemd-timesyncd.service
timedatectl set-timezone Asia/Kolkata
sudo hwclock --systohc
echo "${GREEN}Timezone set${NOCOLOR}"