Manage xlaunch scripts as a tmux session, a la pista
[khome.git] / home / .xlaunch.d / dunst
CommitLineData
6db09847
SK
1#! /bin/sh
2
3set -e
4
5# XXX dunst lazily started by dbus, but need to remove competing notification systems, like:
6#
7# $ grep -rIHn 'org.freedesktop.Notifications' /usr/share/dbus-1/services
8# $ sudo rm /usr/share/dbus-1/services/org.freedesktop.mate.Notifications.service
9#
10#dunst --startup_notification -conf ~/.config/dunst/dunstrc
11
12# Initially dunst is started before hidpi settings are complete, so we need to
13# restarted it after they have done so.
14
15# Hope this is enough for the initial dunst start to have been triggered.
16sleep 1
17
18# XXX Not using pkill to avoid killing self, which is expected to be named dunst as well.
19ps -eo pid,cmd | awk '$2 ~ /\/usr\/bin\/dunst\>/ {print $1}' | xargs -I% kill %
20
21# Hope this is enough for hidpi stuff to finish setting.
22sleep 1
23
24# Now dunst should start scaled:
25dunst --startup_notification
This page took 0.024795 seconds and 4 git commands to generate.