dunst
dunst copied to clipboard
use different `.dunstrc`, Is it possible?
To achieve this, I create these hacky functions:
dunst_right()
{
dunst -c ~/.config/dunst/dunstrc_right &
notify-send "this is new message at the right" &
kill `pidof dunst`
}
dunst_center()
{
dunst -c ~/.config/dunst/dunstrc_center &
notify-send "this is new message at the center" &
kill `pidof dunst`
}
The are two problems:
-
Popup messages always appear at the top-right corner, even if I use
dunstrc_center. -
kill dunstisn't working.
I found the solution:
dunst_right()
{
dunst -conf ~/.config/dunst/dunstrcr &
notify-send "center";
sleep 4;
kill -9 `pidof dunst`
}
dunst_center()
{
dunst -conf ~/.config/dunst/dunstrcc &
notify-send "center";
sleep 4;
kill -9 `pidof dunst`
}
#1120
Clsoing, as it seems a solution has been found
but previous notifications will be gone when killing dunst