You are not logged in.

#1 2016-04-09 21:29:25

ablip
Member
Registered: 2014-08-29
Posts: 5

[SOLVED] dunst working differently for nm-applet and ncmpcpp

This is a screenshot of my desktop just after login.

http://imgur.com/jhYINO7.png

On starting ncmpcpp (which calls a script mpdnotify on song change : a script that uses notify-send to inform me about which song is playing and such) this is how the notifications appear :

http://imgur.com/D9GfqkZ.png

However, if I start dunst from the terminal, and then run ncmpcpp again, the notifications appear as such (intended configuration) :

http://imgur.com/BXABBh2.png

I'm only calling dunst from within .xinitrc

Not just ncmpcpp, even `notify-send "sampletext"` shows up weird post login (without executing dunst from terminal).

After login, executing `ps x` shows :

 2185 ?        SNl    0:00 dunst -config /home/ap/.i3/dunstrc

While, after executing dunst from terminal, `ps x` shows  :

 3130 pts/1    SNl    0:00 dunst -config /home/ap/.i3/dunstrc

If I execute dunst from within .i3/config, instead of .xinitrc, then the networkmanager notifications appear weird, but the ncmpcpp ones appear fine.

Could you point me in the right direction as to how to go about fixing it?

Here are the relevant configs :

.xinitrc : https://raw.githubusercontent.com/chrzr … x/.xinitrc

.i3config : https://raw.githubusercontent.com/chrzr … i3/dunstrc

EDIT : Anyhow, it seems I've fixed the issue by executing dunst from within .xinitrc as well as .i3/config. Now, all notifications look fine. I, however, now have 2 instances of dunst running (both with the same config).

 3863 ?        Sl     0:00 dunst -config /home/ap/.i3/dunstrc
 3899 ?        Sl     0:00 dunst -config /home/ap/.i3/dunstrc

Could someone shed some light on this issue, and how I may go about rectifying it?

EDIT 2 : The solution lies in not starting i3 with dbus. The relevant change to .xinitrc is basically to call just

exec i3

in place of

exec dbus-launch --exit-with-session i3

And now, we can stop executing dunst from within i3. big_smile

Thank you for taking the time to read this. smile

Last edited by ablip (2016-04-11 06:19:26)

Offline

#2 2016-04-09 21:31:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] dunst working differently for nm-applet and ncmpcpp

Read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-04-09 21:39:13

ablip
Member
Registered: 2014-08-29
Posts: 5

Re: [SOLVED] dunst working differently for nm-applet and ncmpcpp

I'm sorry about that. The pictures were under 50kb, and the check on the dimensions of the image escaped my mind. Anyhow, it seems I've fixed the issue by executing dunst from within .xinitrc as well as .i3/config. Now, all notifications look fine. I, however, now have 2 instances of dunst runnig (both with the same config).

Could someone shed some light on this issue, and how I may go about rectifying it?

Offline

Board footer

Powered by FluxBB