如何在没有randr的情况下从CLI确定X分辨率?


Answers:


8

您可以grep xdpyinfoxwininfo -root或的输出xprop -root


很好,谢谢!我使用“ xdpyinfo | grep尺寸”结束
Brad

4

我不确定xdpyinfo是否使用RANDR:

xdpyinfo | grep dimensions:

假设根窗口的大小是分辨率:

xwininfo -root |egrep 'Width:|Height:'
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.