Article 5PMKY How to get the x and the y size of Cinnamon desktop, without the task bar ?

How to get the x and the y size of Cinnamon desktop, without the task bar ?

by
Lennard37
from LinuxQuestions.org on (#5PMKY)
How to get the x and the y size of Linux Mint Ubuntu Edition Cinnamon desktop, without the task bar (can be its called without gratification) ?

I have found 3 partly solutions.

Partly solution 1:

Code:wmctrl -lG
0x04000003 -1 0 0 1366 728 pc_name desktop
# ...
# ...
# ...
0x04e00003 0 0 48 1366 703 computer LinuxQuestions.org - Post New Thread - Mozilla FirefoxHow to get the value 1366 and 728 for output on follow way ?
Code:echo $x
echo $yPartly solution 2:

Code:xdotool getwindowgeometry [FensterID z.B. 0x012345678]# Output
Code:Window 012345678
Position: 0,0 (screen: 0)
Geometry: 1366x728# little bit filtered
Code:xdotool getwindowgeometry 0x04000003 | grep Geometry# Output
Code:Geometry: 1366x728# Kommandosobstitution
Code:var="$( xdotool getwindowgeometry 0x04000003 | grep Geometry )"
echo $varHow to get ?
Code:echo $x
echo $yPartly solution 3:

Code:wmctrl -d# Output
Code:0 * DG: 1366x768 VP: 0,0 WA: 0,0 1366x728 Workspace 1
1 - DG: 1366x768 VP: N/A WA: 0,0 1366x728 Workspace 2
2 - DG: 1366x768 VP: N/A WA: 0,0 1366x728 Workspace 3
3 - DG: 1366x768 VP: N/A WA: 0,0 1366x728 Workspace 4Code:wmctrl -d | grep "Workspace 1"# Output
Code:0 * DG: 1366x768 VP: 0,0 WA: 0,0 1366x728 Workspace 1Wanted output:
Code:echo $x
1366

echo $y
728I am looking for a solution which don't need AWK.latest?d=yIl2AUoC8zA latest?i=qXUjxOZMtv4:D4n_Y35KuG8:F7zBnMy latest?i=qXUjxOZMtv4:D4n_Y35KuG8:V_sGLiP latest?d=qj6IDK7rITs latest?i=qXUjxOZMtv4:D4n_Y35KuG8:gIN9vFwqXUjxOZMtv4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments