I have written a simple extension to provide a Do Not Disturb Button.
I have cc'ed Ankur Sinha and Heiko Adams. I ask they test the extension to insure it is adequate for their needs. If I receive a positive response I will upload it to the ego site.
The following instructions should be all that is needed to test. I suspect they may be a bit pedantic but here goes...
$ git clone https://github.com/nls1729/acme-code.git $ cd acme-code/donotdisturb-button@nls1729 $ make zip-file
The file donotdisturb-button@nls1729.zip should be found in the current directory.
Execute the gnome-tweak-tool (Tweak Tool).
Extensions -> Install Shell Extension
Navigate to directory containing donotdisturb-button@nls1729.zip.
Open
Log out and log in.
Execute the gnome-tweak-tool (Tweak Tool).
Extensions
Find "Do not disturb button"
Set to ON
A new button should appear on the left top panel.
The button can be toggled with the mouse or keyboard.
The extension should function with the Screen Shield and Screen Lock.
If the button is set to busy and notifications are received. Toggling the button to available will display the queued notifications.
If notifications are received during Screen Lock or Screen Shield the queued notifications can be displayed on the Notification Section of the Calendar.
Please let known what you think.
Norman
Hi Norman!
Thanks for working on this! I was looking into it myself but I've never written an extension before and I was still learning the basics.
On Mon, 2015-06-22 at 10:34 -0400, Norman L Smith wrote:
A new button should appear on the left top panel.
Works.
The button can be toggled with the mouse or keyboard.
Tested with mouse. Works.
The extension should function with the Screen Shield and Screen Lock.
What should happen here?
If the button is set to busy and notifications are received. Toggling the button to available will display the queued notifications.
Checked. Works.
If notifications are received during Screen Lock or Screen Shield the queued notifications can be displayed on the Notification Section of the Calendar.
But they'll be shown on the lock screen? (I had two notifications show on the lock screen)
It works well enough for me. Please upload it to the extensions site :)
I still get a notification sound from evolution, though. Looks like the evolution plug-in doesn't care about the presence status - bug?
On Mon, 2015-06-22 at 16:23 +0100, Ankur Sinha wrote:
I still get a notification sound from evolution, though. Looks like the evolution plug-in doesn't care about the presence status - bug?
As I said elsewhere in this thread: https://bugzilla.gnome.org/show_bug.cgi?id=735747
On Mon, 2015-06-22 at 17:45 +0200, Mathieu Bridon wrote:
As I said elsewhere in this thread: https://bugzilla.gnome.org/show_bug.cgi?id=735747
Sorry about that. The earlier mail got lost in my Inbox somewhere.
On Mon, 2015-06-22 at 16:23 +0100, Ankur Sinha wrote:
Hi Norman!
The extension should function with the Screen Shield and Screen Lock.
What should happen here?
When the Screen Shield or the Lock Screen is activated in the busy state any queued notifications are moved to the Calendar and are also displayed on the Screen Shield/Lock Screen when it is shown as you have noted.
When you log in, the extension remains in the busy state but if you change it to available no notifications are in the notifications queue for banner display.
The notifications remain queued in the Calendar.
To clear the notifications you must open the Calendar and acknowledge each of them.
Also the display of the notifications in the Calendar and on the Screen Shield/Lock Screen cannot be expanded to show hidden text, unlike the banner display.
I will upload the extension to the ego site.
Thanks for your quick response and testing.
Hopefully integration of user control of presence for Notifications and Online Accounts will be available in an upcoming version of the Gnome Shell.
Norman
On Mon, 2015-06-22 at 13:15 -0400, Norman L Smith wrote:
I will upload the extension to the ego site.
Thanks for your quick response and testing.
Thanks for writing the extension, Norman. It's most useful!
desktop@lists.stg.fedoraproject.org