dunst icon indicating copy to clipboard operation
dunst copied to clipboard

use different `.dunstrc`, Is it possible?

Open LinArcX opened this issue 3 years ago • 1 comments

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:

  1. Popup messages always appear at the top-right corner, even if I use dunstrc_center.

  2. kill dunst isn't working.

LinArcX avatar Aug 19 '22 09:08 LinArcX

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`
}

LinArcX avatar Aug 19 '22 10:08 LinArcX

#1120

sewnie avatar Nov 03 '22 06:11 sewnie

Clsoing, as it seems a solution has been found

fwsmit avatar Apr 16 '23 17:04 fwsmit

but previous notifications will be gone when killing dunst

playdougher avatar Apr 22 '23 02:04 playdougher