-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-dots
56 lines (38 loc) · 2.15 KB
/
install-dots
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
#!/bin/bash
# Clone nerd fonts, cd into it, remove iosevka conflict, and build package
git clone --depth 1 https://github.com/ryanoasis/nerd-fonts $HOME/nerd-fonts-complete
cd $HOME/nerd-fonts-complete
$HOME/nerd-fonts-complete/install.sh
cd $HOME
rm -rf $HOME/nerd-fonts-complete/
# CD into dotfiles and initialise the git submodules
cd "$HOME/nescafe-dotfiles"
git submodule init
git submodule update --remote --merge
# source "$HOME/.config/zsh/.zshrc"
# mkdir -p $HOME/.config
# cp -rv "$HOME/nescafe-dotfiles/config/zsh" "$HOME/.config"
# make all the directories defined in the zshenv
# mkdir -p "$HOME/.local/share/fonts XDG_DATA_HOME XDG_CACHE_HOME $XDG_CACHE_HOME/packages XDG_CONFIG_HOME GEM_PATH GEM_SPEC_CACHE NPM_CONFIG_USERCONFIG GNUPGHOME _JAVA_OPTIONS GTK2_RC_FILES ZDOTDIR CARGO_HOME FFF_TRASH GEM_HOME GOPATH NPM_CONFIG_USERCONFIG NPM_PACKAGES NODE_PATH $HOME/.cargo/bin $HOME/.local.bin XDG_CONFIG_HOME XDG_CACHE_HOME XDG_DATA_HOME XDG_STATE_HOME XDG_CONFIG_DIRS XDG_DATA_DIRS XDG_RUNTIME_DIR XDG_DESKTOP_DIR XDG_DOWNLOAD_DIR XDG_TEMPLATES_DIR XDG_PUBLICSHARE_DIR XDG_DOCUMENTS_DIR XDG_MUSIC_DIR XDG_PICTURES_DIR XDG_VIDEOS_DIR FFF_TRASH MANPATH INFOPATH GNUPGHOME GTK2_RC_FILES"
# Setup ZSH environment
cp -v $HOME/nescafe-dotfiles/.zshenv $HOME/
# copy .Xresources
cp -v $HOME/nescafe-dotfiles/.Xresources $HOME/
# make package build directory not tempfs because it is a massive install
# sudo mkdir $HOME/.cache/packages
# sudo sed -i "s+BUILDDIR.*+BUILDDIR=$HOME/.cache/packages+" /etc/makepkg.conf
# Install the packages
paru -Sy $(grep -Ev '^#|^$' $HOME/nescafe-dotfiles/packagelist.txt) --needed --noconfirm --noremovemake --batchinstall
# Copy the fonts
cp -rv $HOME/nescafe-dotfiles/fonts/* $HOME/.local/share/fonts/
fc-cache -fv
# Set up the .config folder
cp -rv $HOME/nescafe-dotfiles/config/* $HOME/.config/
# Copy gtk theme
sudo cp -rv $HOME/nescafe-dotfiles/themes/gtk/Aesthetic-Night/* /usr/share/themes
# Copy lightdm settings
sudo cp -rv $HOME/nescafe-dotfiles/lightdm /etc/
chmod +x $HOME/nescafe-dotfiles/update-dots
chmod +x $HOME/nescafe-dotfiles/install-xanmod-kernel.sh
touch $HOME/.config/zsh/history
sudo systemctl start lightdm.service