-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·120 lines (111 loc) · 4.63 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#!/bin/bash
# This is the meta-installation script for my configs. Edit it if you like, and PR it if you think your modification is good.
# This is Arch Linux ONLY! No Gentoo anymore. Don't open issues if you aren't using Arch.
# SET UP FLAGS
copyonly=false
suckless=true
kde=true
while getopts 'csk' OPTION; do
case "$OPTION" in
c) copyonly=true;;
esac
done
COLOR='\033[0;32m'
NOCOLOR='\033[0m'
JUEGOS=$(pwd)
# CONFORMATION
if $kde && $suckless && ! $copyonly; then
echo -e "${COLOR}This program will install dwm, dmenu, dwmblocks, and a few good utilities with my configs. READ THE SOURCE OF THIS SHELL SCRIPT! You can change what it installs with these flags:${NOCOLOR}"
echo -e "${COLOR}-c to only copy configs${NOCOLOR}"
fi
# SOFTWARE INSTALL
if ! $copyonly; then
echo -e "${COLOR}Install software for my configs.${NOCOLOR}"
sudo pacman -S --needed neovim rustup kitty xorg playerctl pipewire fastfetch flatpak doas git base-devel python-pip luajit curl xclip zsh meson sassc zsh-completions xcb-util-cursor redshift inkscape wget xorg-xmodmap picom xorg-setxkbmap xcursor-vanilla-dmz feh libxcb thunar p7zip flameshot blueman python-pynvim network-manager-applet cbatticon acpi ttf-hack acpilight xdg-user-dirs awesome xdotool && sudo chmod u+s "$(which fusermount)"
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
sudo usermod -a -G video $LOGNAME
echo -e "${COLOR}Installing paru-bin from the AUR.${NOCOLOR}"
mkdir paru-bin
git clone https://aur.archlinux.org/paru-bin.git
cd paru-bin
makepkg -si
cd ..
rm -rf paru-bin/
echo -e "${COLOR}Install more crap but from the AUR.${NOCOLOR}"
paru -S --needed ttf-twemoji adobe-source-han-sans-jp-fonts adobe-source-han-sans-kr-fonts ttf-ubraille devour
echo -e "${COLOR}Skipping AUR packages because you are not on arch.${NOCOLOR}"
xdg-user-dirs-update
else
echo -e "${COLOR}Skipping software install.${NOCOLOR}"
fi
# ZSH
if ! $copyonly; then
echo -e "${COLOR}Change the shell to zsh.${NOCOLOR}"
export RUNZSH=no
chsh -s /bin/zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
else
echo -e "${COLOR}Skipping zsh install.${NOCOLOR}"
fi
# COPY CONFIGS / ENV VARIABLES
echo -e "${COLOR}Copy configs to correct dirs.${NOCOLOR}"
sudo cp -v -r paru.conf doas.conf pacman.conf /etc/
sudo cp -v bashrc /etc/bash/bashrc
sudo cp -v bashrc /etc/bash.bashrc
sudo cp -v stylish/cursor/index.html /usr/share/icons/default/index.theme
sudo cp -v .XCompose ~/.XCompose
cp -v dmenuunicode ~/.local/bin
cp -v -r .config/ .oh-my-zsh/ .zshrc ~/
mkdir ~/Pictures
cp -v Woods.jpg ~/Pictures/
sudo ln -s /usr/bin/kitty /usr/bin/gnome-terminal
sudo ln -s /usr/bin/kitty /usr/bin/xfce4-terminal
xdg-mime default kitty.desktop text/x-shellscript
xdg-mime default kitty.desktop text/plain
xdg-mime default thunar.desktop inode/directory
cd ~/.local/share
rm emoji*
wget https://raw.githubusercontent.com/LukeSmithxyz/voidrice/master/.local/share/larbs/emoji
wget https://gitlab.com/wavexx/acpilight/-/raw/master/90-backlight.rules && sudo mv 90-backlight.rules /etc/udev/rules.d/90-backlight.rules
cd "${JUEGOS}"
if ! $copyonly; then
# PAPIRUS
cd "${JUEGOS}"
git clone https://github.com/PapirusDevelopmentTeam/papirus-icon-theme.git
cd papirus-icon-theme/
cp ../papirus.diff ./papirus.diff
git apply papirus.diff
cd tools/
./build_color_folders.sh
cd ..
sudo make install
cd ..
rm -rf papirus-icon-theme/
cd "${JUEGOS}"
wget https://raw.githubusercontent.com/PapirusDevelopmentTeam/papirus-folders/master/papirus-folders
chmod +x papirus-folders
./papirus-folders -C luke --theme Papirus-Dark
# GTK THEME
cd "${JUEGOS}"
git clone https://codeberg.org/Drogobo/luke-theme
cd luke-theme/
meson setup --prefix=/usr -Dthemes=gtk2,gtk3,gtk4 -Dvariants=dark build/
sudo meson install -C build/
cd ..
rm -rf luke-theme/
cd "${JUEGOS}"
else
echo -e "${COLOR}Skipping GTK and icon theme.${NOCOLOR}"
fi
if ! $copyonly; then
# UPDATE SYSTEM
echo -e "${COLOR}Do a quick update to finalize.${NOCOLOR}"
paru -Syu
else echo "Cannot figure out how to update on whatever this OS is."; fi
flatpak update
nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
echo
# SPECIAL MESSAGE
echo -e "${COLOR}I also included a bonus wallpaper! It was copied to ~/Pictures. You might want to reboot before doing anything, so you don't accidentally break something.${NOCOLOR}"