让真棒WM只使用屏幕的一部分 [英] Let awesome wm use only a part of the screen
问题描述
有没有办法让很棒的WM仅使用屏幕的特定部分?例如,从像素50x50到像素500x500。其余的应该只是黑色,并且完全不用。换句话说,这将模仿较小的显示器。
Is there a way to let awesome wm use only a certain part of the screen? say, from pixel 50x50 to pixel 500x500. The rest should be just black and totally unused. In other words this would be imitating having a smaller display or so.
很高兴听到一些建议。
推荐答案
是的,Awesome 4.0(即将发布)具有 screen.fake_resize
方法。它正是您想要的。如果愿意,还可以使用1 fake_add
在未使用的空间中添加新屏幕。
Yes, Awesome 4.0 (to be released soon) has a screen.fake_resize
method. It does exactly what you want. You can also use 1fake_add
to add a new screen in the unused space if you wish to.
https://awesomewm.org/apidoc/classes/screen.html#screen:fake_resize
此方法在Awesome 3.5中不可用。如果要在3.5中重现该代码,则必须手动编辑C源代码。这是Awesome 3.4的非常粗糙的补丁 https://github.com/Elv13 / Patched-Awesome / commit / 4deb0d7c53a0e8b384acffa4ec5a281826ea78a5 。我不建议使用此解决方案。
This method is not available in Awesome 3.5. If you wish to reproduce that in 3.5, you have to manually edit the C source code. Here is a very crude "patch" for Awesome 3.4 https://github.com/Elv13/Patched-Awesome/commit/4deb0d7c53a0e8b384acffa4ec5a281826ea78a5 . I do not recommend to use this solution.
这篇关于让真棒WM只使用屏幕的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!