dotfiles/i3/conf/build.sh

14 lines
390 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
2018-08-04 21:20:02 +02:00
cat ${CLIENT}header ${COMMON}base ${CLIENT}bar ${CLIENT}assignments ${COMMON}footer > ~/.dotfiles/i3/config