hidetopbar icon indicating copy to clipboard operation
hidetopbar copied to clipboard

Viewing message tray when top bar is hidden

Open bjohas opened this issue 4 years ago • 6 comments

Hello,

thanks for building and maintaining this, it's great!

When the top-bar is hidden, the keyboard shortcut to "show notification list" (which also shows the calendar/clocks) doesn't work. I have to unhide the top bar first, then show messages.

Now, when I set a shortcut for the clipboard indicator, the clipboard selection shows even if the top bar is hidden. So this may not actually be an issue with 'hidetopbar', but it may be an issue with how the message/calendar tray shortcut works.

Do you have any insight into this? Is there a potential work around? Maybe hidtopbar could add a keyboard shortcut for "unhide, then 'show notification list'"?

Would be great to hear your thoughts! Thanks!

bjohas avatar Jun 02 '20 21:06 bjohas

Thanks for your clear and short report!

Since browsing the GNOME source code is a quite overwhelming experience, I doubt that I will find the "show notification list" action (or shortcut). But if you or someone else looks into it and finds the critical location, I will be happy to discuss possible workarounds.

tuxor1337 avatar Jun 03 '20 07:06 tuxor1337

Hi @tuxor1337 - thank you for your kind response, that's much appreciated. For some reason this has now started to work!

With toggle-message-tray in org.gnome.shell.keybindings bound to a keyboard combination, this now shows (and hides) the tray as expected. Not sure what changed, but something did.

Thanks for this great extension!

bjohas avatar Jul 01 '20 18:07 bjohas

toggle-message-tray can't work in my pc (Only a few times can it work, not sure why.)

weijarz avatar Jul 02 '20 01:07 weijarz

For me, it worked reliably. However, with the latest update of hide top bar, it no longer works at all!

bjohas avatar Jul 02 '20 08:07 bjohas

So, just dropping some references here: The toggle-message-tray signal is defined here: https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/e90466347a24fb758a9b4056d4fd561a3ecec237/js/ui/windowManager.js#L801

On our side, one workaround would be to comment out this line: https://github.com/mlutfy/hidetopbar/blob/a692aa423bc854ec2209792e8b3fd4d25b803441/panelVisibilityManager.js#L111

But this might look ugly, especially in multi-monitor setups.

tuxor1337 avatar Jul 02 '20 15:07 tuxor1337

Thank you for investigating. I would love to have this, irrespective of looks. As far as I am concerned, it's better to have something that doesn't look good, than something you cannot do at all :) But of course, not everyone might agree. :)

bjohas avatar Jul 02 '20 15:07 bjohas