Move some systemd services to config
Enable timer for reflector Move vnstat service to config
This commit is contained in:
parent
7f2978ef25
commit
9bfd0f163c
@ -331,6 +331,9 @@ cat <<EOF
|
|||||||
########################################
|
########################################
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# reload systemd user scripts
|
||||||
|
systemctl --user daemon-reload
|
||||||
|
|
||||||
# set systemd services for vmware (only if installed)
|
# set systemd services for vmware (only if installed)
|
||||||
if [[ $(pacman -Q | grep vmware-workstation) ]]; then
|
if [[ $(pacman -Q | grep vmware-workstation) ]]; then
|
||||||
sudo systemctl enable --now vmware-networks.service || echo "Service failed, continuing"
|
sudo systemctl enable --now vmware-networks.service || echo "Service failed, continuing"
|
||||||
@ -365,6 +368,12 @@ sudo timedatectl set-ntp true
|
|||||||
# enable ssh-agent
|
# enable ssh-agent
|
||||||
systemctl --user enable --now ssh-agent
|
systemctl --user enable --now ssh-agent
|
||||||
|
|
||||||
|
# enable reflector timer
|
||||||
|
sudo systemctl enable reflector.timer
|
||||||
|
|
||||||
|
# enable vnstat
|
||||||
|
sudo systemctl enable vnstat
|
||||||
|
|
||||||
echo
|
echo
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
########################################
|
########################################
|
||||||
@ -456,9 +465,6 @@ fi
|
|||||||
# dunst
|
# dunst
|
||||||
pkill dunst && nohup dunst &
|
pkill dunst && nohup dunst &
|
||||||
|
|
||||||
# reload systemd user scripts
|
|
||||||
systemctl --user daemon-reload
|
|
||||||
|
|
||||||
# reload .Xresources
|
# reload .Xresources
|
||||||
if [[ -f "$HOME/.Xresources" ]]; then
|
if [[ -f "$HOME/.Xresources" ]]; then
|
||||||
xrdb ~/.Xresources
|
xrdb ~/.Xresources
|
||||||
|
@ -359,10 +359,6 @@ fi
|
|||||||
#change shell
|
#change shell
|
||||||
chsh -s /usr/bin/fish "$USER"
|
chsh -s /usr/bin/fish "$USER"
|
||||||
|
|
||||||
#enable vnstat
|
|
||||||
sudo systemctl enable vnstat
|
|
||||||
sudo systemctl start vnstat
|
|
||||||
|
|
||||||
# setup autotrash
|
# setup autotrash
|
||||||
autotrash -td 5 --install
|
autotrash -td 5 --install
|
||||||
systemctl --user enable autotrash.timer
|
systemctl --user enable autotrash.timer
|
||||||
|
Loading…
Reference in New Issue
Block a user