Update installer.sh
This commit is contained in:
parent
05b3a73f18
commit
f51229600b
|
@ -6,6 +6,9 @@ mkdir -p "~/.config/systemd/user"
|
|||
# Copy unit files
|
||||
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
|
||||
mkdir -p "~/.theme-switcher"
|
||||
|
||||
|
@ -14,4 +17,5 @@ cp *.sh "~/.theme-switcher"
|
|||
|
||||
# Enable and start timer
|
||||
systemctl --user enable theme-switcher.timer
|
||||
systemctl --user start theme-switcher.timer
|
||||
systemctl --user start theme-switcher
|
Loading…
Reference in New Issue