27 lines
551 B
Bash
27 lines
551 B
Bash
#!/bin/bash
|
|
|
|
SCRIPT=$(readlink -f "$0")
|
|
DIR=$(dirname "$SCRIPT")
|
|
|
|
# Create dirrectory for systemd and conky scripts
|
|
cd $HOME/.config/
|
|
mkdir -p systemd
|
|
mkdir -p conky
|
|
cd systemd/
|
|
mkdir -p user
|
|
|
|
# Update daemon files
|
|
cd "$DIR"
|
|
cp -ur ../services/* ~/.config/systemd/user
|
|
|
|
# Copy conky config
|
|
cp -ur ../configs/* ~/.config/conky
|
|
|
|
# Daemon launch
|
|
/usr/bin/systemctl --user daemon-reload
|
|
|
|
/usr/bin/systemctl --user enable wthrc.service
|
|
/usr/bin/systemctl --user enable conky.service
|
|
/usr/bin/systemctl --user enable conkyconf.service
|
|
|
|
echo "Done installer" |