#!/bin/sh

# Terminate already running instance
pkill -u "${USER}" -x {{ notification }} >/dev/null

# Launch again
{% if notification == 'dunst' %}
exec dunst -config ~/.config/dunst/dunstrc
{% elif notification == 'mako' %}
exec mako -c ~/.config/mako/config
{% elif notification == 'fnott' %}
exec fnott -c ~/.config/fnott/fnott.ini
{% endif %}
