Plasma-Theme-Switcher/installer.sh

22 lines
566 B
Bash
Raw Normal View History

2024-05-27 13:16:51 +02:00
#/bin/bash
# Create systemd user directory
mkdir -p "~/.config/systemd/user"
# Copy unit files
2024-05-27 13:49:34 +02:00
cp theme-switcher.service "~/.config/systemd/user"
cp theme-switcher.timer "~/.config/systemd/user"
2024-05-27 13:16:51 +02:00
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