#!/usr/bin/env bash # setup polybar sed -i '/base/{n;N;N;d}' $HOME/.config/polybar/config sed -i "/base/ a\ include-file = ${CONF_PATH}/master.conf" $HOME/.config/polybar/config sed -i "/base/ a\ include-file = ${CONF_PATH}/modules.conf" $HOME/.config/polybar/config # set firefox homepage sed -i "s/liveuser/${USER}/g" $HOME/.mozilla/firefox/archlabs.default/prefs.js sed -i "s/liveuser/${USER}/g" $HOME/.mozilla/firefox/archlabs.default/sessionstore.js # set bookmarks in thunar sed -i "s/liveuser/${USER}/g" $HOME/.config/gtk-3.0/bookmarks # remove itself sed -i '/setup/d' $HOME/.config/openbox/autostart rm -f $HOME/.config/setup exit 0