Add dunst restart. Move sudo check to front

This commit is contained in:
RealStickman 2021-06-06 12:07:58 +02:00
parent 6b45036b68
commit 129160b82d

View File

@ -1,6 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
# check if user is root
if [ "$EUID" -ne 0 ]; then
sudo -l > /dev/null
fi
cat <<EOF
############################################################
###################### INSTALL CONFIG ######################
@ -34,11 +39,6 @@ cat <<EOF
########################################
EOF
# check if user is root
if [ "$EUID" -ne 0 ]; then
sudo -l > /dev/null
fi
# change to home
cd "$HOME"
@ -417,6 +417,9 @@ update-desktop-database ~/.local/share/applications/
#sync doom-emacs
~/.emacs.d/bin/doom sync
# dunst
pkill dunst && dunst &
# reload systemd user scripts
systemctl --user daemon-reload