Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1014  / 2 Years ago, mon, may 16, 2022, 9:08:24

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?


More From » gnome

 Answers
4

  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

[#888] Wednesday, May 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
enincroscope

Total Points: 252
Total Questions: 124
Total Answers: 104

Location: Tajikistan
Member since Thu, Apr 14, 2022
2 Years ago
;