Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What is the size of Gnome's top bar?

In order to run windowed programs at the maximum possible size I can set their resolution to the resolution of my monitor, but then there are several pixels off-screen below the window because the window is positioned below the Gnome Top Bar.

If I knew the size of the top-bar I could account for that, is there a way to find out what size it is exactly?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

  1. Maximize an active window
  2. Then measure its size
  3. Apply the new calculated size on your target program window

Just a theory, not sure if wmctrl and xdotool are still working fine with Wayland.

user@Bee3:~/Desktop$ wmctrl -lG
0x01600003 -1 136  54   1168 699  Bee3 @!68,27;BDHF  <-- desktop may be
0x02a0000a  0 454  60   912  664  Bee3 user@Bee3: ~/Desktop
user@Bee3:~/Desktop$ wmctrl -lG
0x01600003 -1 136  54   1168 699  Bee3 @!68,27;BDHF
0x02a0000a  0 136  54   1168 699  Bee3 user@Bee3: ~/Desktop  <-- terminal window maximized
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading