summaryrefslogtreecommitdiff
path: root/build
blob: 001eec1f241fb3374e0dec21940efbe44ef46452 (plain)
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
#!/bin/bash

# var setup
RC_DIR=$HOME'/src/rc'

# git setup
git config --global user.name "Tom Barrett"
git config --global user.email "tom@tombarrett.xyz"

# dwm setup
DWM_DIR=$HOME'/src/dwm'
git clone https://git.suckless.org/dwm $DWM_DIR

patch $DWM_DIR'/dwm.c' $RC_DIR'/dwm/vanitygaps.diff'
patch $DWM_DIR'/dwm.c' $RC_DIR'/dwm/custom.diff'

cp $RC_DIR'/dwm/config.h' $DWM_DIR

make -C $DWM_DIR

# dwmstatus setup
DWMSTS_DIR=$HOME'/src/dwmstatus'
git clone https://git.suckless.org/dwmstatus $DWMSTS_DIR

patch $DWMSTS_DIR'/dwmstatus.c' $RC_DIR'/dwmstatus/custom.diff'

make -C $DWMSTS_DIR

# fish setup
cp -r $RC_DIR'/.config/fish' $HOME'/.config/'

# lxc setup
cp -r $RC_DIR'/.config/lxc' $HOME'/.config'
chmod a+rw $HOME'/.local/' $HOME'/.local/share'

# freedesktop setup
cp $RC_DIR'/.config/user-dirs.dirs' $HOME'/.config/'

# xorg setup
cp $RC_DIR'/.xinitrc' $HOME

# autostart script
cp $RC_DIR'/.autostart' $HOME

# extras
#vboxmanage setproperty machinefolder /home/tom/vms