Skip to content

Instantly share code, notes, and snippets.

@kenyonj
Last active June 1, 2016 01:21
Show Gist options
  • Save kenyonj/a02ea0a1a9ef16fd407164cc6db13e44 to your computer and use it in GitHub Desktop.
Save kenyonj/a02ea0a1a9ef16fd407164cc6db13e44 to your computer and use it in GitHub Desktop.
#!/bin/zsh
i3_config_file="$HOME/.i3/config"
[[ -f $i3_config_file ]] && rm $i3_config_file
touch "$i3_config_file"
echo "#### DO NOT EDIT THIS FILE, IT IS GENERATED." >> $i3_config_file
echo "#### EDIT THE FILES HERE: ~/.i3/config.d/**/*" >> $i3_config_file
cat ~/.i3/config.d/vars >> $i3_config_file
for file in $HOME/.i3/config.d/**/*.conf; do
cat $file >> $i3_config_file
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment