Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
xwininfo 用于返回窗口的尺寸,包括边框和标题栏,直到 GNOME2。现在,相同的命令返回没有边框和标题栏的实际窗口的尺寸。那么我可以在 shell 脚本中使用另一个命令将两者相加以获得真实尺寸吗?
这好像是
xwininfo -frame
提供窗口的完整高度,包括标题栏。虽然我不确定显示的宽度,这似乎有点夸大了。