Made dunst a user systemd service

This commit is contained in:
Micah Halter 2019-02-01 14:29:52 -05:00
parent 8a7e0caeab
commit 0f62af4715
3 changed files with 11 additions and 3 deletions

View File

@ -46,8 +46,6 @@ for_window [instance="dropdown_*"] move position center
# #---Starting External Scripts---# #
# Setting the background:
exec --no-startup-id setbg
# Starts dunst for notifications:
exec --no-startup-id dunst
# Composite manager:
exec --no-startup-id xcompmgr
# Runs the key remapping scripts

View File

@ -0,0 +1,10 @@
[Unit]
Description=dunst notifications
[Service]
Type=simple
Environment=DISPLAY=:0
ExecStart=dunst
[Install]
WantedBy=default.target

View File

@ -70,4 +70,4 @@ esac
setbg # Fix background if screen size/arangement has changed.
remaps # Re-remap keys if keyboard added (for laptop bases)
pgrep -x dunst >/dev/null && killall dunst && setsid dunst & # Restart dunst to ensure proper location on screen
systemctl --user restart dunst # Restart dunst to ensure proper location on screen