qwreey / quick-settings-tweaks

Let's tweak gnome 43's quick settings! You can add Media Controls, Notifications, Volume Mixer on quick settings and remove useless buttons!
https://extensions.gnome.org/extension/5446/quick-settings-tweaker/
GNU General Public License v3.0
352 stars 19 forks source link

Hide notifications when DND/Screen sharing is enabled #49

Open rohmishra opened 1 year ago

rohmishra commented 1 year ago

Currently there is no way to hide notifications when screen sharing is enabled if notifications are below QS toggles. An option to collapse notifications when DND is enabled or screen cast/share is enabled would be helpful

qwreey commented 1 year ago

I think, it is no way to check screen share is enabled in gnome shell API Did you know how to check screen share is enabled?

schrej commented 1 year ago

Gnome shows a orange indicator among the tray icons when screen share is active. Apparently they are using some remote access api to figure out if anything is capturing the screen: https://github.com/GNOME/gnome-shell/blob/538c7c397aac146ebc47b9af1663e27899f334fd/js/ui/status/remoteAccess.js#L134