我可以缩小窗口或缩放整个桌面吗?

use*_*807 14 xrandr window

我有一台分辨率为 1600x900 的 17" 笔记本电脑,但并排打开窗口还不够。我想知道我是否可以缩小(或任何其他解决方案)窗口(或整个桌面)。xserver 上有解决方案吗或在 WM 上实现这一目标?

顺便说一下,compiz zoom out 插件不允许您以超过 1:1 的比例缩小,这还不够,我想以与使用 unity-tweak-tool 扩展所有窗口相同的方式缩小更多。

Rma*_*ano 22

免责声明:我不知道它是否适用于所有图形驱动程序。英特尔驱动程序在这里,在 13.04。

首先获取您已激活的正常屏幕:

xrandr --current
Run Code Online (Sandbox Code Playgroud)

我的输出是:

Screen 0: minimum 320 x 200, current 1024 x 600, maximum 32767 x 32767
LVDS1 connected 1024x600+0+0 (normal left inverted right x axis y axis) 220mm x 129mm
   1024x600       60.0*+   65.0  
   800x600        60.3     56.2  
   640x480        59.9  
VGA1 disconnected (normal left inverted right x axis y axis)
Run Code Online (Sandbox Code Playgroud)

好的,它是LVDS1。现在例如缩小一半线性尺寸:

xrandr --output LVDS1 --scale 2x2 
Run Code Online (Sandbox Code Playgroud)

整个屏幕应该缩小。我现在有:

(0)asus-romano:~/research/reviews% xrandr --current
Screen 0: minimum 320 x 200, current 2048 x 1200, maximum 32767 x 32767
LVDS1 connected 2048x1200+0+0 (normal left inverted right x axis y axis) 220mm x 129mm
   1024x600       60.0*+   65.0  
   800x600        60.3     56.2  
   640x480        59.9  
VGA1 disconnected (normal left inverted right x axis y axis)
Run Code Online (Sandbox Code Playgroud)

所以系统认为它有一个 2048x1200 的屏幕。对于认为你有无数像素空间并且在某些选项窗口中不提供滚动条的蹩脚程序非常有用......

回去:

xrandr --output LVDS1 --scale 1x1
Run Code Online (Sandbox Code Playgroud)

(您也可以使用 1.5x1.5)。看看man xrandr很多花哨的东西。

哎呀。似乎存在无法访问扩展视频区域的错误:https : //bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/883319和上游https://bugs.freedesktop.org /show_bug.cgi?id=39949

对此的解决方法是指定所需的更大区域作为--panning选项,例如:

 xrandr --output LVDS1 --scale 2x2 --panning 2048x1200
Run Code Online (Sandbox Code Playgroud)

它不会导致任何实际平移,因为由于缩放,整个大区域都适合屏幕。