Add installer script

This commit is contained in:
dataprolet 2024-05-27 11:16:51 +00:00
parent 98a25db171
commit 4a3f298611
1 changed files with 17 additions and 0 deletions

17
installer.sh Normal file
View File

@ -0,0 +1,17 @@
#/bin/bash
# Create systemd user directory
mkdir -p "~/.config/systemd/user"
# Copy unit files
cp theme-switcher.{timer,service} "~/.config/systemd/user"
# Make directory for scripts
mkdir -p "~/.theme-switcher"
# Copy script file
cp *.sh "~/.theme-switcher"
# Enable and start timer
systemctl --user enable theme-switcher.timer
systemctl --user start theme-switcher