Update installer.sh

This commit is contained in:
dataprolet 2024-05-27 11:36:31 +00:00
parent 05b3a73f18
commit f51229600b
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,9 @@ mkdir -p "~/.config/systemd/user"
# Copy unit files # Copy unit files
cp theme-switcher.{timer,service} "~/.config/systemd/user" cp theme-switcher.{timer,service} "~/.config/systemd/user"
# Add username to service file
sed -i "s/username/$(whoami)/g" ~/.config/systemd/user/theme-switcher.service
# Make directory for scripts # Make directory for scripts
mkdir -p "~/.theme-switcher" mkdir -p "~/.theme-switcher"
@ -14,4 +17,5 @@ cp *.sh "~/.theme-switcher"
# Enable and start timer # Enable and start timer
systemctl --user enable theme-switcher.timer systemctl --user enable theme-switcher.timer
systemctl --user start theme-switcher.timer
systemctl --user start theme-switcher systemctl --user start theme-switcher