diff options
author | Tom Barrett <tom@tombarrett.xyz> | 2019-09-16 18:19:48 +0200 |
---|---|---|
committer | Tom Barrett <tom@tombarrett.xyz> | 2019-09-16 18:19:48 +0200 |
commit | 474b115630c262cfeb44814948f0abe019d4aa3f (patch) | |
tree | c73711c9b8cbe642ce81fdd3368de82eb0f5a2a7 /build | |
parent | 3ab6b4cf462aad9ca60856adc013679c25d1ee1f (diff) |
auto patching and compiling
Diffstat (limited to 'build')
-rwxr-xr-x | build | 36 |
1 files changed, 34 insertions, 2 deletions
@@ -1,3 +1,35 @@ #!/bin/bash -git clone https://git.suckless.org/dwm /home/tom/src/dwm -git clone https://git.suckless.org/dwmstatus /home/tom/src/dwmstatus + +# var setup +HOME_DIR='/home/tom' +RC_DIR=$HOME_DIR'/src/rc' + +# git setup +git config --global user.name "Tom Barrett" +git config --global user.email "tom@tombarrett.xyz" + +# dwm setup +DWM_DIR=$HOME_DIR'/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_DIR'/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 + +# xorg setup +cp $RC_DIR'/.xinitrc' $HOME_DIR + +# autostart script +cp $RC_DIR'/.autostart' $HOME_DIR + |