franciscolourenco / done

A fish-shell package to automatically receive notifications when long processes finish.
MIT License
770 stars 70 forks source link

Option to enable notification in full screen #41

Closed BarbzYHOOL closed 4 years ago

BarbzYHOOL commented 5 years ago

This PR for LINUX (ubuntu) allows to always have the notification, even in fullscreen when you're playing a game or watching a video. Just need to set the var in your config

I spent a unhealthy amount of time trying to make the "or" works -__- this is ridiculous

I also figured that it will prob cause an error when the variable is not set, so I hope you can fix it/show me how to fix it.

franciscolourenco commented 5 years ago

@BarbzYHOOL sorry only now got to this PR.

I'm not using linux daily. Are you saying that the notifications only get shown in fullscreen if --urgency=critical ?

BarbzYHOOL commented 5 years ago

Yes and I use my modification since then (useful when launching a command then starting a game :P)

franciscolourenco commented 5 years ago

@BarbzYHOOL thank you once again for the pull request and apologies for only now addressing it. I have one more question:

Does the notification style change for you, when --urgency=critical is used?

Thanks

ammgws commented 4 years ago

I am not OP but I would say the answer to your question is yes.

For example, if you were using the dunst notification daemon, then the default colour scheme sets critical notifications to have a red background.

ammgws commented 4 years ago

Just as a FYI, I'm using sway with mako for notifications, and adding layer=overlay to the mako config allows notifications to be shown over fullscreen applications.

franciscolourenco commented 4 years ago

I don't use Linux desktop on a daily basis, so don't really know what tools are usually available. Setting --urgency=critical seems like a workaround to achieve fullscreen notifications which has unrelated side effects.

Therefore I'm inclined to no include this change, since the OP can use a custom command to add --urgency=critical.

@ammgws The setup you describe is specific to sway, right?

ammgws commented 4 years ago

@franciscolourenco I am running with sway but mako should work with any wlroots based Wayland compositor.

I don't know what notification daemon OP is using but at least for dunst, it seems like it will only display notifications over fullscreen applications if their urgency is set to critical...

franciscolourenco commented 4 years ago

@BarbzYHOOL if we add this option we should probably call it __done_notification_urgency_level, and explain in the readme, that in linux it can be set it to critical to force notifications while in fullscreen mode.

franciscolourenco commented 4 years ago

Closing in favor of #72 Thanks everyone!

BarbzYHOOL commented 1 year ago

thx guys, i trust ya