-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap
More file actions
executable file
·36 lines (26 loc) · 1.07 KB
/
bootstrap
File metadata and controls
executable file
·36 lines (26 loc) · 1.07 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
#!/usr/bin/env sh
BASEPATH="$HOME/.i3ify"
if [ -e $BASEPATH/.git ]; then
cd $BASEPATH && git pull
else
git clone https://github.com/gekorob/i3ify.git $BASEPATH
fi
source $BASEPATH/install
# i3 config
mkdir -p $HOME/.config/i3
ln -sf $BASEPATH/i3-config $HOME/.config/i3/config
# i3 share pictures
mkdir -p $HOME/.local/share/
ln -sf $BASEPATH/share/pictures $HOME/.local/share/pictures
mkdir -p $HOME/Pictures/wallpapers
cp -sf $BASEPATH/share/pictures/*.jpg $HOME/Pictures/wallpapers/
cp -sf $BASEPATH/share/pictures/*.png $HOME/Pictures/
# i3 share fonts
FONTS_DIR=$HOME/.local/share/fonts
mkdir -p $FONTS_DIR
cd $FONTS_DIR && curl -fLo "fa-brands-400.ttf" https://github.com/FortAwesome/Font-Awesome/raw/master/webfonts/fa-brands-400.ttf
cd $FONTS_DIR && curl -fLo "fa-regular-400.ttf" https://github.com/FortAwesome/Font-Awesome/raw/master/webfonts/fa-regular-400.ttf
cd $FONTS_DIR && curl -fLo "fa-solid-900.ttf" https://github.com/FortAwesome/Font-Awesome/raw/master/webfonts/fa-solid-900.ttf
# i3cmds
mkdir -p $HOME/.local/bin
ln -sf $BASEPATH/bin/i3cmds $HOME/.local/bin/i3cmds