Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add desktop notification on playing new track #247

Merged
merged 3 commits into from
Aug 18, 2020

Conversation

rbuch
Copy link
Contributor

@rbuch rbuch commented Aug 12, 2020

Addresses #202.

@rbuch
Copy link
Contributor Author

rbuch commented Aug 12, 2020

This is my first time doing anything with Rust, so please review with a critical eye.

TODO:
- apply this to other single config values that are passed directly, e.g. in the
  statusbar
- use a more appropriate object to hold `cfg`
@hrkfdn hrkfdn merged commit 188b0ad into hrkfdn:master Aug 18, 2020
@hrkfdn
Copy link
Owner

hrkfdn commented Aug 18, 2020

Thanks! I have merged this with some minor changes.

@rbuch rbuch deleted the add-notifications branch August 18, 2020 21:39
@pfr-dev
Copy link

pfr-dev commented Feb 12, 2021

Can anyone help me configure notifications? I've added notify = true to my config.toml but I need to know how to use it with something like dunst or xnotify on a wm only environment. I guess I need a script to pipe it to stdout or something but It's a bit over my head.

@BachoSeven
Copy link

BachoSeven commented Mar 8, 2021

@Ramiferous For dunst, I've set it up like this:

[ncspot]
	appname = *ncspot*
	format = "<b> Now Playing:</b>\n%s\n%b"
	background = "#1d2021"
	foreground = "#ebdbb2"
	frame_color = "#1db954"
	timeout = 5
	script = spotup

Edit: spotup is just a script of mine which updates a statusbar module.

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

Successfully merging this pull request may close these issues.

None yet

4 participants