diff options
author | johannst <stoelp@eit.uni-kl.de> | 2018-03-05 21:53:20 +0100 |
---|---|---|
committer | johannst <stoelp@eit.uni-kl.de> | 2018-03-05 21:53:20 +0100 |
commit | fa2d74b51be70eb5d7dc24b909e0d7370d316457 (patch) | |
tree | 92c71f504e0f9589a0ff82bddd9bcba880462712 /install | |
parent | bc9a72c21ab78c440be126e424ffd7367467c1e8 (diff) | |
download | dotfiles-fa2d74b51be70eb5d7dc24b909e0d7370d316457.tar.gz dotfiles-fa2d74b51be70eb5d7dc24b909e0d7370d316457.zip |
Added termite config files + install handler
Diffstat (limited to 'install')
-rwxr-xr-x | install | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -17,6 +17,7 @@ gToolsConfig=( "i3config:i3:i3ConfigInstaller" "i3status:i3status:i3statusConfigInstaller" "i3blocks:i3blocks:i3blocksConfigInstaller" +"termite:termite:termiteConfigInstaller" ) gMagicNumber=e2718281 @@ -198,6 +199,24 @@ function i3blocksConfigInstaller() { } #}}} +#{{{ termiteConfigInstaller + +function termiteConfigInstaller() { + local tm_dir=~/.config/termite + local tm_conf=$tm_dir/config + [[ ! -d $tm_dir ]] && mkdir -p $tm_dir + touch $tm_conf + grep $gMagicNumber $tm_conf > /dev/null 2>&1 + if [[ $? = 0 ]]; then + return 1 + fi + echo -e "\n# $gMagicNumber - Auto generated, do not delete or modify!" >> $tm_conf + echo -e "$(cat termite)" >> $tm_conf + + return 0 +} + +#}}} #{{{ Installer Main Loop |