-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·98 lines (73 loc) · 3.23 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
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
#!/bin/bash
configure_dots() {
sudo pacman -S git --needed base-devel --noconfirm || exit
if [ -d ./yay ]; then
rm -rf yay
fi
git clone https://aur.archlinux.org/yay.git || exit
cd yay || exit
makepkg -si --noconfirm || exit
cd .. && rm -rf yay || exit
yay -S neofetch skippy-xd cava ranger mpv rofi wezterm zsh feh xorg-xrandr neovim flameshot notify-osd discord chromium xclip pavucontrol ttf-roboto-mono-nerd thunar lxappearance fzf networkmanager exa bat github-cli zsh-autosuggestions zsh-syntax-highlighting meson ninja uthash libconfig nodejs npm python-pip libsixel imagemagick qt5-quickcontrols2-git qt5-graphicaleffects-git qt5-svg-git --noconfirm || exit
if [ -e /etc/systemd/system/display-manager.service ]; then
default_target=$(basename $(readlink -f /etc/systemd/system/display-manager.service))
login_manager=${default_target%-*}
sudo systemctl disable $login_manager || exit
fi
yay -S sddm --noconfirm || exit
sudo systemctl enable sddm.service || exit
if [ -d ./picom ]; then
rm -rf picom
fi
git clone https://github.com/fdev31/picom || exit
cd picom
meson setup --buildtype=release . build || exit
ninja -C build || exit
sudo cp build/src/picom /usr/bin/picom || exit
cd .. && rm -rf picom || exit
if [ -d ./dotfiles ]; then
rm -rf ./dotfiles
fi
git clone https://github.com/carrotshniper21/dotfiles || exit
cd dotfiles
chsh $USER -s /bin/zsh
if [ -e $HOME/.bash* ]; then
rm $HOME/.bash*
fi
echo "(1/8) Configuring backgrounds..."
cp -r backgrounds $HOME/.backgrounds
echo "(2/8) Installing lunarvim..."
if [ -d $HOME/.local ]; then
sudo rm -rf $HOME/.local
fi
bash <(curl -s https://raw.githubusercontent.com/LunarVim/LunarVim/release-1.3/neovim-0.9/utils/installer/install.sh)
sudo cp $HOME/.local/bin/lvim /usr/bin || exit
echo "(3/8) Copying configuration files..."
cp -r config/* $HOME/.config || exit
echo "(4/8) Installing GTK-3 theme..."
if [ -d $HOME/.themes ]; then
rm -rf $HOME/.themes
fi
git clone https://github.com/jmattheis/gruvbox-dark-gtk $HOME/.themes/gruvbox-dark-gtk || exit
echo "(5/8) Copying desktop configuration files..."
cp desktop/xsession $HOME/.xsession
sudo cp desktop/dwm.desktop /usr/share/xsessions || exit
sudo cp -r desktop/tartarus -r /usr/share/grub/themes || exit
sudo cp desktop/grub /etc/default/grub || exit
sudo grub-mkconfig -o /boot/grub/grub.cfg || exit
sudo cp -r desktop/sugar-candy /usr/share/sddm/themes || exit
sudo cp desktop/default.conf /usr/lib/sddm/sddm.conf.d/default.conf || exit
echo "(6/8) Building dwm and dwmblocks..."
sudo make clean install -C desktop/dwm || exit
sudo make clean install -C desktop/dwmblocks || exit
echo "(7/8) Moving dwmblocks binaries to /usr/bin..."
sudo cp bin/* /usr/bin || exit
echo "(8/9) Configuring terminal..."
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
rm $HOME/.zshrc
cp shell/zshrc $HOME/.zshrc || exit
echo "(9/9) Deleting dotfiles directory"
cd .. && rm -rf dotfiles
echo "DONE!"
}
configure_dots