This repository has been archived on 2024-09-01. You can view files and clone it, but cannot push or open issues or pull requests.
al-skel/home/.config/setup

23 lines
685 B
Plaintext
Raw Normal View History

2017-10-16 14:38:02 -05:00
#!/usr/bin/env bash
# this script will setup configs for any user created from /etc/skel
# if this is not run immediately at startup, polybar WILL fail to load
2018-03-03 00:35:19 -06:00
files=(
"$HOME/.config/polybar/config"
"$HOME/.config/polybar/sessions/i3-sessionfile"
"$HOME/.config/polybar/sessions/bspwm-sessionfile"
"$HOME/.config/polybar/sessions/openbox-sessionfile"
"$HOME/.config/openbox/autostart"
"$HOME/.config/gtk-3.0/bookmarks"
"$HOME/.mozilla/firefox/archlabs.default/prefs.js"
"$HOME/.mozilla/firefox/archlabs.default/sessionstore.js"
)
2018-06-09 18:51:08 -05:00
for f in "${files[@]}"; do
sed -i "s/liveuser/${USER}/g" "$f"
done
sed -i '/setup/d' "$HOME/.config/openbox/autostart"
rm -f "$HOME/.config/setup"