2024-10-07 09:28:28 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-10-07 10:57:04 +03:00
|
|
|
SCRIPT=$(readlink -f "$0")
|
|
|
|
DIR=$(dirname "$SCRIPT")
|
|
|
|
|
2024-10-15 18:16:19 +03:00
|
|
|
# Create dirrectory for systemd and conky scripts
|
2024-10-09 15:41:39 +03:00
|
|
|
cd $HOME/.config/
|
2024-10-09 15:54:41 +03:00
|
|
|
mkdir -p systemd
|
2024-10-15 18:16:19 +03:00
|
|
|
mkdir -p conky
|
2024-10-09 15:41:39 +03:00
|
|
|
cd systemd/
|
2024-10-09 15:54:41 +03:00
|
|
|
mkdir -p user
|
2024-10-09 15:41:39 +03:00
|
|
|
|
2024-10-07 09:28:28 +03:00
|
|
|
# Update daemon files
|
2024-10-09 15:41:39 +03:00
|
|
|
cd "$DIR"
|
2024-10-07 10:57:04 +03:00
|
|
|
cp -ur ../services/* ~/.config/systemd/user
|
2024-10-07 09:28:28 +03:00
|
|
|
|
2024-10-15 18:16:19 +03:00
|
|
|
# Copy conky config
|
|
|
|
cp -ur ../configs/* ~/.config/conky
|
|
|
|
|
2024-10-07 09:28:28 +03:00
|
|
|
# Daemon launch
|
|
|
|
/usr/bin/systemctl --user daemon-reload
|
2024-10-15 18:16:19 +03:00
|
|
|
|
2024-10-07 09:28:28 +03:00
|
|
|
/usr/bin/systemctl --user enable wthrc.service
|
2024-10-11 18:56:25 +03:00
|
|
|
/usr/bin/systemctl --user enable conky.service
|
2024-10-15 18:16:19 +03:00
|
|
|
/usr/bin/systemctl --user enable conkyconf.service
|
|
|
|
|
2024-10-07 09:28:28 +03:00
|
|
|
echo "Done installer"
|