Add dunst restart. Move sudo check to front
This commit is contained in:
parent
6b45036b68
commit
129160b82d
@ -1,6 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
# check if user is root
|
||||||
|
if [ "$EUID" -ne 0 ]; then
|
||||||
|
sudo -l > /dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
############################################################
|
############################################################
|
||||||
###################### INSTALL CONFIG ######################
|
###################### INSTALL CONFIG ######################
|
||||||
@ -34,11 +39,6 @@ cat <<EOF
|
|||||||
########################################
|
########################################
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# check if user is root
|
|
||||||
if [ "$EUID" -ne 0 ]; then
|
|
||||||
sudo -l > /dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
# change to home
|
# change to home
|
||||||
cd "$HOME"
|
cd "$HOME"
|
||||||
|
|
||||||
@ -417,6 +417,9 @@ update-desktop-database ~/.local/share/applications/
|
|||||||
#sync doom-emacs
|
#sync doom-emacs
|
||||||
~/.emacs.d/bin/doom sync
|
~/.emacs.d/bin/doom sync
|
||||||
|
|
||||||
|
# dunst
|
||||||
|
pkill dunst && dunst &
|
||||||
|
|
||||||
# reload systemd user scripts
|
# reload systemd user scripts
|
||||||
systemctl --user daemon-reload
|
systemctl --user daemon-reload
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user