2024-05-27 13:16:51 +02:00
|
|
|
#/bin/bash
|
|
|
|
|
|
|
|
# Create systemd user directory
|
|
|
|
mkdir -p "~/.config/systemd/user"
|
|
|
|
|
|
|
|
# Copy unit files
|
|
|
|
cp theme-switcher.{timer,service} "~/.config/systemd/user"
|
|
|
|
|
2024-05-27 13:36:31 +02:00
|
|
|
# Add username to service file
|
|
|
|
sed -i "s/username/$(whoami)/g" ~/.config/systemd/user/theme-switcher.service
|
|
|
|
|
2024-05-27 13:16:51 +02:00
|
|
|
# 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
|
2024-05-27 13:36:31 +02:00
|
|
|
systemctl --user start theme-switcher.timer
|
2024-05-27 13:16:51 +02:00
|
|
|
systemctl --user start theme-switcher
|