17 lines
371 B
Bash
17 lines
371 B
Bash
|
#/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
|