Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Please add suport for Dunst #322

Closed
Minda1975 opened this issue Oct 24, 2018 · 14 comments
Closed

Please add suport for Dunst #322

Minda1975 opened this issue Oct 24, 2018 · 14 comments

Comments

@Minda1975
Copy link

Hello. Thank you for your hard work with this project. I have one request. Would it be possible to extend the functionality of the program by adding dunst (it is a lightweight replacement for the notification-daemons provided by most desktop environments) support?

@ltgouvea
Copy link
Contributor

You can customize and use this little script to reload dunst with wal colors with -o reload_dunst.sh (if I remember correctly I've dug this out of some old commits on this repository)

#!/usr/bin/env bash
#
# Script to set colors generated by 'wal'
# https://github.com/dylanaraps/wal
 # Source generated colors.
. "${HOME}/.cache/wal/colors.sh"

 reload_dunst() {
    pkill dunst
    dunst \
	-frame_width 0 \
        -lb "${color0}" \
        -nb "${color0}" \
        -cb "${color0}" \
        -lf "${color7}" \
        -bf "${color7}" \
        -cf "${color7}" \
        -nf "${color7}" &
}

reload_dunst

@Minda1975
Copy link
Author

You can customize and use this little script to reload dunst with wal colors with -o reload_dunst.sh

Hello. It works partly. In urgency_low, theme changed, but in urgency_normal, not. Here screenshot. I'm hoping this will help

@ltgouvea
Copy link
Contributor

You can customize and use this little script to reload dunst with wal colors with -o reload_dunst.sh

Hello. It works partly. In urgency_low, theme changed, but in urgency_normal, not. Here screenshot. I'm hoping this will help

Hmm, I can't reproduce this error, the script is working for me. I'm using Dunst version 1.3.0 (2018-01-05)

@Minda1975
Copy link
Author

I'm using Dunst version 1.3.0 (2018-01-05)

I'm using Dunst version 1.1.0 (i am on Debian 9.5)...Maybe you could give advice on this? If not, it does not matter. It should be as it is 😄

@ltgouvea
Copy link
Contributor

ltgouvea commented Oct 24, 2018

It seems Dunst has deprecated such flags (dunst-project/dunst#328) BUT here's the funny thing: Deprecation seems to have happened in version 1.2.0 according to their changelog, I'm using a later version and it's working, you're using one pre-deprecation and getting this weird behaviour.....

@Minda1975
Copy link
Author

It seems Dunst has deprecated such flags

It does not matter anymore. I made the configuration manually. Thank you for the help.

@Minda1975
Copy link
Author

I will close this issue.

@donovanglover
Copy link

If anyone else is interested, I solved this issue by writing my dunstrc as a user template file and symlinking the resulting cache file to ~/.config/dunst/dunstrc.

@Minda1975
Copy link
Author

I solved this issue

Thank you for this idea. In the near future I will try.

@Minda1975
Copy link
Author

If anyone else is interested, I solved this issue by

Thank you, GloverDonovan, very much for this tip. Now dunst working the way I wanted.

Cheese-18-10-26-16-50-11

@Minda1975 Minda1975 reopened this Oct 26, 2018
@Minda1975
Copy link
Author

Finally, with a calm heart😊💗, I can close this problem. Good luck.

@amenpunk
Copy link

If anyone else is interested, I solved this issue by writing my dunstrc as a user template file and symlinking the resulting cache file to ~/.config/dunst/dunstrc.

ohhh ty! <3

@Rockenstien
Copy link

If anyone else is interested, I solved this issue by writing my dunstrc as a user template file and symlinking the resulting cache file to ~/.config/dunst/dunstrc.

I am getting this error, I have done symlinking but still getting this error
WARNING: Invalid color string: '{foreground}'
WARNING: Invalid color string: '{background}'
WARNING: Invalid color string: '{color4}'
WARNING: Invalid color string: '{foreground}'
WARNING: Invalid color string: '{background}'
WARNING: Invalid color string: '{color4}'

@masonj5n
Copy link

I know this is a year later, but @Rockenstien, you need to create the symlink to the generated file in ~/.cache/wal/dunstrc, not the dunstrc file in ~/.config/wal/templates/dunstrc. You have to run pywal at least once to get that file generated from the template.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants