Fix dirs
This commit is contained in:
parent
904fee7297
commit
aecfb9bd93
10
installer.sh
10
installer.sh
|
@ -1,20 +1,20 @@
|
||||||
#/bin/bash
|
#/bin/bash
|
||||||
|
|
||||||
# Create systemd user directory
|
# Create systemd user directory
|
||||||
mkdir -p "~/.config/systemd/user"
|
mkdir -p ~/.config/systemd/user
|
||||||
|
|
||||||
# Copy unit files
|
# Copy unit files
|
||||||
cp theme-switcher.service "~/.config/systemd/user"
|
cp theme-switcher.service ~/.config/systemd/user
|
||||||
cp theme-switcher.timer "~/.config/systemd/user"
|
cp theme-switcher.timer ~/.config/systemd/user
|
||||||
|
|
||||||
# Add username to service file
|
# Add username to service file
|
||||||
sed -i "s/username/$(whoami)/g" ~/.config/systemd/user/theme-switcher.service
|
sed -i "s/username/$(whoami)/g" ~/.config/systemd/user/theme-switcher.service
|
||||||
|
|
||||||
# Make directory for scripts
|
# Make directory for scripts
|
||||||
mkdir -p "~/.theme-switcher"
|
mkdir -p ~/.theme-switcher
|
||||||
|
|
||||||
# Copy script file
|
# Copy script file
|
||||||
cp *.sh "~/.theme-switcher"
|
cp *.sh ~/.theme-switcher
|
||||||
|
|
||||||
# Enable and start timer
|
# Enable and start timer
|
||||||
systemctl --user enable theme-switcher.timer
|
systemctl --user enable theme-switcher.timer
|
||||||
|
|
Loading…
Reference in New Issue