dotfiles/i3/conf/build.sh

14 lines
377 B
Bash
Raw Normal View History

2018-04-05 14:39:49 +02:00
#!/bin/bash
2018-04-05 16:17:46 +02:00
COMMON=~/.dotfiles/i3/conf/common/
CLIENT=~/.dotfiles/i3/conf/client/$(hostname)/
if [ -f "~/.dotfiles/i3/config" ]; then
rm ~/.dotfiles/i3/config
fi
if [ ! -d $CLIENT ]; then
cp -r ~/.dotfiles/i3/conf/client/default ~/.dotfiles/i3/conf/client/$(hostname)
fi
cat ${CLIENT}header ${COMMON}base ${CLIENT}assignments ${COMMON}footer > ~/.dotfiles/i3/config