简体   繁体   English

让真棒WM只使用屏幕的一部分

[英]Let awesome wm use only a part of the screen

Is there a way to let awesome wm use only a certain part of the screen? 有没有办法让很棒的wm仅使用屏幕的特定部分? say, from pixel 50x50 to pixel 500x500. 例如,从像素50x50到像素500x500。 The rest should be just black and totally unused. 其余的应该只是黑色,并且完全不用。 In other words this would be imitating having a smaller display or so. 换句话说,这将模仿较小的显示器。

would be nice to hear some advice. 很高兴听到一些建议。

I believe all window managers take over the entire X server display. 我相信所有的窗口管理器都将接管整个X服务器的显示。

However, you could create a nested X server inside a window and run Awesome inside of that. 但是,您可以在窗口内创建嵌套的X服务器,然后在其中运行Awesome。 There is an example of this on the Awesome wiki. 在Awesome Wiki上有一个示例

Yes, Awesome 4.0 (to be released soon) has a screen.fake_resize method. 是的,Awesome 4.0(即将发布)具有screen.fake_resize方法。 It does exactly what you want. 它正是您想要的。 You can also use 1 fake_add to add a new screen in the unused space if you wish to. 如果fake_add ,还可以使用1 fake_add在未使用的空间中添加新屏幕。

https://awesomewm.org/apidoc/classes/screen.html#screen:fake_resize https://awesomewm.org/apidoc/classes/screen.html#screen:fake_resize

This method is not available in Awesome 3.5. 此方法在Awesome 3.5中不可用。 If you wish to reproduce that in 3.5, you have to manually edit the C source code. 如果要在3.5中重现该代码,则必须手动编辑C源代码。 Here is a very crude "patch" for Awesome 3.4 https://github.com/Elv13/Patched-Awesome/commit/4deb0d7c53a0e8b384acffa4ec5a281826ea78a5 . 这是Awesome 3.4的非常粗糙的“补丁”, 网址https://github.com/Elv13/Patched-Awesome/commit/4deb0d7c53a0e8b384acffa4ec5a281826ea78a5 I do not recommend to use this solution. 我不建议使用此解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM