From f51229600bc8d9e42bb78724abbf0eb52c8b786d Mon Sep 17 00:00:00 2001 From: dataprolet Date: Mon, 27 May 2024 11:36:31 +0000 Subject: [PATCH] Update installer.sh --- installer.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/installer.sh b/installer.sh index 71d20bf..7a51698 100644 --- a/installer.sh +++ b/installer.sh @@ -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 \ No newline at end of file