From 129160b82d09f773c1ad6a4bcb14a21aa926737a Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sun, 6 Jun 2021 12:07:58 +0200 Subject: [PATCH] Add dunst restart. Move sudo check to front --- arch-config/scripts/arch-config.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/arch-config/scripts/arch-config.sh b/arch-config/scripts/arch-config.sh index a6d1fb92..6e9e0e43 100755 --- a/arch-config/scripts/arch-config.sh +++ b/arch-config/scripts/arch-config.sh @@ -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 < /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