Coder Social home page Coder Social logo

bellini666 / gnome-shell-notifications-alert Goto Github PK

View Code? Open in Web Editor NEW
54.0 54.0 21.0 151 KB

Whenever there is an unread notification (e.g. chat messages), blinks the message in the user's menu with a color chosen by the user.

Home Page: https://extensions.gnome.org/extension/258/

License: GNU Lesser General Public License v2.1

JavaScript 95.54% Makefile 4.46%
gnome gnome-shell-extension gtk javascript

gnome-shell-notifications-alert's People

Contributors

73 avatar aruhier avatar bellini666 avatar etamuk avatar hossman avatar ilgarmehmetali avatar jonnius avatar p-bo avatar vistaus avatar zweif avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gnome-shell-notifications-alert's Issues

GNOME 46 support

I changed the metadata.json to version 46 & it works.

I didn't test this extensively, but it looks like it's fully working.

Disable the default notification alert dot

The reason I installed this is that the default alert, dot, pushes other entries to the left, when the clock is on the right side (default is centre) of the TopBar. It seems that even I install this extension, the dot also appears. Since the user now has different colours for notification, I don't need they also need the dot. Shouldn't the dot be disabled?

https://askubuntu.com/questions/726268/what-is-the-strange-dot-that-appeared-next-to-the-time-when-gone-midnight

Option to blink a 1px across the bottom edge of the screen

This was suggested by an used on ego:

"""
The idea is good but it looks a bit weird: while it blinks in the top-right corner, the actual notification is opened not by pushing the presence icon. Probably if it were a red 1px line across the bottom edge of the screen it would be more intuitive.
"""

I think adding this as a preference would be great, so there'll be 2 options for alerts.

Possible to stop blinking once notification panel is opened?

Currently, the notification flash won't stop unless you dismiss the notification. Often, I like to check the notifications but get to them later. Is it possible to configure the extension so it stops flashing if I open the panel but leave notifications?

Do not react on Spotify notifications

"If you find any other any other weird behavior like that, please, file an issue here providing the name of the program in question that generated the notification."
Here you are: Spotify notifies about every started song, and triggers the alert. Would be nice to not to react on such notifications.

Make blinking fade, rather than immediate.

This is a proposed enhancement, not a bug. (sorry, looks like I can't edit the label)

In the settings, there would be an option for the blinking to pulsate, rather than just blink. Instead of white->red->white immediately, it would fade in between the colors.

In the settings, there would also be an option as to how quickly this would occur.

respect Do-Not-Disturb setting

I love your extension, I just don't know why Gnome doesn't implement this directly. The only problem I have with your extension is that I still get "notified" (blinking) even though I've toggle Do Not Disturb.
Would it be possible to check if this setting is enabled and not do any blinking, and once the setting is turned off, perhaps resume blinking again?

Stop after reading email

Hello, is there a way to make it stop automatically after reading an email in thunderbird ?

I have to keep clicking the clear button after reading mail, can you make it go off after reading mail or opening thunderbird.

Using with Ubuntu 20.04

Thank you.

New Request: Shortcut to clean all the unread notifications

I love your extension, but sometimes I have notification for some messages that I've already read and I don't wont to mix them with the future messages are about to arrive.

So everytime I have to clean the notifications and could be great if a quick shortcut will be implemented.

Thanks

Different colors for different notifications

It would be nice if it was possible to set different colors for different types of notifications (let's say different color for chat, mail and other notifications).

Extension could cycle through all of them blinking one color for some time, then changing to other color if there's another type of notification waiting. That way, user would know what has happened without opening the notification area.

Providing new strings to translate (for new feature background color)

Hello :-)

Happy to see the new option for changing background color.
Can you please provide the new strings to translate in the pot file?

Maybe the new string "Use alert color" should be changed to "Use alert font color" and "Alert color" to "Alert font color".

Best regards from germany :-)

Stuck on alert colour

Hi,

I'm using the latest version from e.g.o. on Ubuntu 17.10 (GNOME Shell 3.26.1) and my clock is frequently stuck on the alert colour. I've set the blink rate to 0 but the issue is still present if the rate is higher (so it actually blinks).

I believe the trigger is, if I receive a notification and the notification is revoked when the screen is locked, then the clock is stuck on the alert colour. Let me know if there is anything more I should add or try.

Thanks!

Blacklist unwanted applications in settings

Would be a killer-feature! I've seen that most of the issues can actually be solved by users if there was an option to block the notifications from unwanted applications. Some GUI element representing the list with "add", "modify", and "remove" buttons in the extension settings would suffice.
I believe it's feasible due to this quote from bergschreck:

Best notification extension. I tried 2 others, but they didn't work with evolution mail. This one notifies everything, a little bit too much. ;-) But it is easy to blacklist unwanted applications in source code. To blacklist iceweasel and owncloud, I changed function _hasNotifications the following way: this._hasNotifications = function(source) { var title=source.title.toLowerCase(); if (title == 'iceweasel' || title == 'owncloud') return false; if (source._counterBin.visible && source._counterLabel.get_text() != '0') { return true; } for (let n = 0; n < source.notifications.length; n++) { if (!source.notifications[n].resident) { // Do not alert resident notifications (like Rhythmbox ones) return true; } } return false; }

Add a different color for different application

Hi,

I download your extension and it works properly.
But in the settings, I add my mail application and skype and I would like to put different color for each notification but when I change a color it changes also for both. Is it possible?

By the way, I have to add in the whitelist or blacklist? Because doesn't change anything which list I select

Thanks for your help,
And again good extension !

Gwibber is considered a chat notification

Hello,

I'm using gnome 3.4 and I disabled alert for non-chat notification.
Even though, the extension is always red because of gwibber, my social network client (not chat)

Is is possible to fix this ?

Damien

Extensión doesn't work in GNOME 45

In GNOME 45 (Ubuntu 23.10) the extension doesn't start showing this error in the journal:

JS ERROR: Extension [email protected]: SyntaxError: import declarations may only appear at top level of a module @ resource:///org/gnome/shell/ui/main.js:3:0

Not compatible with Gnome 3.10

Hello,
I used to use your extension, but since the last gnome upgrade (gnome 3.10), it's no more compatible. Even if I force the compatibility, there are some problems with the new menu.

Thank you !

it is red in first start

The icon turn to red in first start. I do "alt+f2 and r", after that icon is turning to true color.

I'm using gnome 3.2.1 on archlinux and latest version of this extension.

Sorry for my bad english :D

Blacklist app that is not in the list

First I would like to thank you for this nice extension! Very much like it :)

I was wondering how to blacklist an app that is not in the list of applications when clicking 'Add Rule'.
In my case the offical dropbox client always notifies me when someone changes a file.
But dropbox does not appear in the list. So is there a way to add it manually?

Chat disabled = no notification

I haven't defined any chat account and the chat icon is disabled (grey color).
In this case, it doesn't alert me of any notification.

Icon doesn't stop blinking when pidgin has focus.

Hi folks, I don't know if this is a pidgin issue or an issue with the plugin.

I was using 12.04 with gnome-shell 3.4, and with the libnotify plugin enabled in pidgin, everything worked great. When I got a message, the notification popped up, and if the notification window went away, the icon would stop flashing once the pidgin message window was focused.

Now I've upgraded to 13.04, with gnome-shell 3.6, and the icon does not stop blinking when I focus the pidgin window. It only stops blinking when I very specifically go to the bottom panel, click the pidgin icon, and then click the body of the notification (not the x, not the "show" button).

If you need any information or if you think that this is not an issue with the extension, let me know. Thanks!

Notification failed when no dialog persisted on screen

Gtalk with Empathy 3.6.0.3
Gnome-shell 3.6.1(Ubuntu 12.10)
Extension version: 16

The notification won't blink, If there is no dialog window opened. Other words, it happened when others call you at the first time, when I realized someone called me by the avatar showing on the Message Tray of Gnome, it's too late.

Constant alert color on resume from suspend (gnome 3.28.2)

There is a 'Constant alert color on resume from suspend' on gnome 3.28.2. Only goes back to normal on a shell restart or when there is a new notification. Please fix, it's a great extension!
Update: The above condition is also valid for when returning from screen lock,

Compatibility with "dash-to-panel"

There's an other extension https://github.com/jderose9/dash-to-panel which changes the position and spacing of the top bar and the clock.

When using dash-to-panel, the color change makes also the spacing arround the clock change. I have tried to configure the dash-to-panel spacing options, but my clock keeps "dancing" while changing colors.

Updates but no changelog

Is this extension actually open-source? I got an update at extensions.gnome.org this morning but no updates here since 2016.

Alert from Mailnag only

Hi,

is there an option to enable your extension to react only on Mailnag alerts?

A switchable option for Mailnag alerts would therefore be great, like we already have with chat notifications. Even better would be a list where we could specify, what programs should trigger the alert.

What do you think about it?

Bye!

Notification not working on Slack

Hello,

Firstly, thanks for your nice extension it's great.
Unfortunately, I have an issue with Slack app. I have no notification when I receive a Slack message. Slack notifications are active because I have one on Slack icon.

Does someone else have this issue ?

Thanks for help

Add transparent colour option

If possible it would be cool if the flashing of the text colour could be set to transparent so that it takes the colour of the current panel/background colour.

No notifications from mentioned name in empathy rooms

While, when my nickname is mentioned in an Empathy's chat room the tab gets highlighted, I do not get a notification from gnome-shell. That way I can easily miss notifications, specially if the Empathy tab is not visible.

Icon instead of a blinking

Maybe you will make control that instead of a blinking there was an icon near date and hours that there are unread notices. Your expansion very important but irritates when constantly blinks. Thanks.

add an option for blinking the color

I've been using your extension for a while and it's very handy, but I still find myself frequently not noticing for quite a while that the menu color had changed. It seemed like adding an option to "blink" the color change at some configurable rate might be useful.

I'm not a fan of JavaScript, and most of the Gtk libraries used in writing gnome extensions are greek to me, but based on some blogs i've found about writing extensions I managed to modify your extention with a proof of concept using a hard coded blink rate...

hossman@f8a9153

(Note: that commit is based on a branch I forked from the last time the extension worked with gnome-shell 3.4, the version i'm still running -- thus no pull request. But from what i can tell it looks like it should be trivial to modify it to run in 3.6 -- just s/_statusArea/statusArea/g i think?)

I've been testing it out for a few hours and it seems to work well. The hard part (to me anyway) to make this generally usable would be adding a pref for it. It's not really clear to me what Gtk widget incantations are needed to add a numeric input box (not to mention how exactly the "schema" relates and what would need added there)

Anyway: hope you find it useful.

Not working properly in Gnome shell 3.8 - Always turns on

For some reason, it always blinks in 3.8. Doenst work properly.

I couldn't open its preferences also. When I try to open preferences from tweak tool It says

"There was an error loading preferences dialog for Notifications Alert" and it throws this message as well

TypeError: Gtk.SpinButton.new_with_range is not a constructor

Stack trace:
_createIntSetting@/home/rajeshksv/.local/share/gnome-shell/extensions/[email protected]/prefs.js:69
buildPrefsWidget@/home/rajeshksv/.local/share/gnome-shell/extensions/[email protected]/prefs.js:166
Application<._selectExtension@/usr/share/gnome-shell/js/extensionPrefs/main.js:100
wrapper@/usr/share/gjs-1.0/lang.js:213
Application<._extensionSelected@/usr/share/gnome-shell/js/extensionPrefs/main.js:119
wrapper@/usr/share/gjs-1.0/lang.js:213
Application<._selectExtension@/usr/share/gnome-shell/js/extensionPrefs/main.js:110
wrapper@/usr/share/gjs-1.0/lang.js:213
Application<._extensionsLoaded@/usr/share/gnome-shell/js/extensionPrefs/main.js:219
wrapper@/usr/share/gjs-1.0/lang.js:213
_emit@/usr/share/gjs-1.0/signals.js:124
ExtensionFinder<._extensionsLoaded@/usr/share/gnome-shell/js/misc/extensionUtils.js:178
wrapper@/usr/share/gjs-1.0/lang.js:213
done@/usr/share/gnome-shell/js/misc/fileUtils.js:33
@/usr/share/gnome-shell/js/misc/fileUtils.js:51
onNextFileComplete@/usr/share/gnome-shell/js/misc/fileUtils.js:21
main@/usr/share/gnome-shell/js/extensionPrefs/main.js:276
@:1

Reset color manually

Frequently my gnome-shell-notifications-alert get notification stuck in red.
How could I restart it manually? Some sentence in Javascript in Looking glass?
IMHO a "force colour reset" option is needed.

Example of stuck in red:

  • Mail message arrives
  • Thunderbird sends a notification
  • We don't open it
  • Other mail message arrives
  • Thunderbird sends another notification

Only one notification is visible and can be open now, then... we are stuck in red.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.