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
2018-06-09 16:51:08 -07:00

23 lines
685 B
Bash
Executable File

#!/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
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"
)
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"