Geany 窗口大小和位置
从命令行运行 Geany 时如何指定窗口大小和位置。 来完成的:WIDTHxHEIGHT+XOFF+YOFF。
-g, --geometry string
通常,这是通过使用标准 X 窗口几何语法指定窗口的大小和位置
How can you specify the windows size and position when running Geany from a command line. Usually this is done as
-g, --geometry string
Where you specify the size and location of the window, using the standard X window geometry syntax: WIDTHxHEIGHT+XOFF+YOFF.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我知道这是一个又一年的问题,但它可能对其他人有帮助......
这是一种随时修改位置和大小的方法。
Debian Linux 已经(有?)预装了 xdotool,它可以移动窗口并调整窗口大小。
将窗口移动到位置 300 20 并将大小设置为 100 x 10(在控制台/终端中):
它存在误报,因为它按名称搜索窗口,因此带有此问题(“控制台 - Geany...”)打开选项卡的 Firefox 可能会出现误报可能会调整大小。
I know it is a Year after question, but it might help others ...
This is a way to modify position and size at any time.
Debian Linux has (had?) preinstalled xdotool, which can move and resize windows.
Moves window to position 300 20 and sets size to 100 x 10 (in console/terminal):
It has false positives because it searches windows by name, so Firefox with tab opened with this question ("console - Geany...") might might get resized.
如果您希望 geany 窗口始终以特定尺寸打开,您可以正常打开它并更改窗口的大小。默认情况下,geany 会记住它的窗口的大小。
如果没有,您可以转到“编辑”,然后转到“首选项”,选择“常规”选项卡,然后选择“启动”选项卡,最后确保选中“保存窗口位置和几何图形”。
If you want the geany window to always open using certain dimensions, you can just open it normally and change the size of the window. By default geany remembers the size of it's window.
if it doesn't, you can go to Edit, then preferences, select the general tab and then the start up tab, and finally make sure "Save window position and geometry" is checked.
替换配置文件中的
geometry
行,然后运行 geany
:或者如果您使用变量,则订阅此格式:
其中这些参数引用
geany
窗口:- x 是左上角的水平坐标
- y 是左上角的垂直坐标
- hs 是水平轴的尺寸
- vs 是垂直轴的大小
注意:
sed
是一个规范命令,它应该可以正常工作。Replace the
geometry
line in the configuration file, and rungeany
:or subscribe this format if you're using a variable:
where these parameters are referred to the
geany
window:- x is the horizontal coordinate of the left-top corner
- y is the vertical coordinate of the left-top corner
- hs is the size in the horizontal axis
- vs is the size in the vertical axis
Note:
sed
is a canonical command, it should work fine.