Click anywhere on the desktop, Then press your shortcut key. After that, simply use the shortcut key to show the window and exit.
Explanation: The control script was made to exit if the window was of type "desktop", since you wouldn't want to minimize the desktop. Now the script first looks for possibly existing VirtualBox windows, to target, if the currently active window is the desktop.
Option 2
Copy the icon below (right- click -> save as), save it as minwinicon.png
Copy the lines below into an empty file, save it as minwin.desktop in ~/.local/share/applications:
You'd need to log out and back in for the launcher to "find" the local ~/bin path!
Drag the icon on to the launcher to use it.
The second solution has an important downside: after using it from the launcher, it will keep blinking for a few seconds, waiting for a window to appear. During that, clicking again won't have any effect. That can be solved, as described here, but including that in this answer would really make it too long. If you want to use option two, please look into the link.
编辑
(新答案)
完毕。
下面的答案现在以精致的形式提供,作为指标,作为 Trusty、Xenial、Yakkety 和 Zesty 的 ppa:
Th 指示器(包括预览窗口)现在非常低。选项包括设置窗口、设置窗口边框大小/颜色、窗口大小。
同时,我发现关注 AU 窗口很有用;看看有没有留言:)
旧答案
(
第一第二粗略概念)在另一个工作区上具有最小化的窗口表示
令我自己(大)惊讶的是,它可以有效地完成,无论是诡计还是欺骗;在另一个工作区上有一个窗口的更新表示。不适合看电影,绝对好到可以留意其他地方的窗户(例如:我的电视卡窗口):
在实践中如何运作
将窗口放在前面,按快捷键:
(窗口将最小化)
移动到另一个工作区,再次按下快捷键,窗口的小表示会出现,每 4 秒更新一次:
该窗口始终显示在其他窗口的顶部。实际上,窗口是 300 像素(宽度),但可以设置为任何大小。
要结束它,请(再次)按下快捷键。小窗口将关闭,您将移动到原始窗口的视口,该视口将再次出现,未最小化。
脚本
控制脚本
窗口表示
如何使用
安装
python3-pil
,xdotool
和wmctrl
如果该目录尚不存在,则创建该目录
~/bin
。showcase_control
(无扩展名)在中~/bin
,并使其可执行。showmin
(无扩展名)在 中~/bin
,并使其可执行。注销并重新登录,并将以下命令添加到您选择的快捷方式中:
选择:系统设置>“键盘”>“快捷方式”>“自定义快捷方式”。单击“+”并添加命令:
它应该工作!
缺点?
目前的设置为您的处理器增加了一些工作。然而,在我的(非常)旧系统上,它(平均)增加了 appr。我估计是 4-5%,我没有注意到这一点。
更新:事实证明
import
可以一步调整图像大小,以及获取窗口图像。这意味着处理器负载的大幅减少。同时刷新时间更短(现在为 3 秒),仍然以更低的“成本”。解释
import
虽然这都适用于最小化的窗口或没有焦点的窗口,但是有一个问题:窗口需要在当前工作区上。wmctrl
,但同时最小化。简而言之:
专门针对 VirtualBox
当 VBox 窗口在前面时,原来 Ubuntu 快捷键被禁用(!),因此需要以另一种方式启动控制脚本。下面简单说几句。
选项1
我编辑了控制脚本。现在仅在 VirtualBox 的情况下:
Click anywhere on the desktop, Then press your shortcut key. After that, simply use the shortcut key to show the window and exit.
Explanation: The control script was made to exit if the window was of type "desktop", since you wouldn't want to minimize the desktop. Now the script first looks for possibly existing VirtualBox windows, to target, if the currently active window is the desktop.
Option 2
Copy the icon below (right- click -> save as), save it as
minwinicon.png
Copy the lines below into an empty file, save it as
minwin.desktop
in~/.local/share/applications
:You'd need to log out and back in for the launcher to "find" the local
~/bin
path!Drag the icon on to the launcher to use it.
The second solution has an important downside: after using it from the launcher, it will keep blinking for a few seconds, waiting for a window to appear. During that, clicking again won't have any effect. That can be solved, as described here, but including that in this answer would really make it too long. If you want to use option two, please look into the link.
看起来有点矫枉过正但完全适用于这个目的的东西是Open Broadcaster。在“Sources”列表框中,点击加号,选择“Window Capture”,然后根据提示选择您感兴趣的窗口。点击记录没有意义;只需使用预览。它几乎适用于任何操作系统,这里有 Ubuntu 的说明,我在下面复制了这些说明。
如果您愿意,您可以进入“查看”菜单并隐藏所有 UI 元素。