当前位置: 首页>>技术问答>>正文


如何将启动器配置为“dodge windows”?

, ,

问题描述

我不喜欢自动隐藏发射器,因为它对我来说太烦人了。启动器保持隐藏状态并显示它,鼠标指针必须移动到默认热点。我反而希望隐藏闪存以前在Ubuntu 11.10中可用的窗口。如何更改回此行为?

最佳解决办法

如何在12.04恢复道奇行为

This Ubuntu Geek postthis newer WepUpd8 post报告如何在12.04中恢复道奇Windows和道奇活动Windows for Unity。然后可以在CompizConfig设置管理器中的Unity插件中设置它们。更新:12.10 /13.04,请参阅this WepUpd8 post

需要添加一个ppa:

sudo apt-add-repository ppa:ikarosdev/unity-revamped

并运行分发升级:

sudo apt-get update
sudo apt-get dist-upgrade

然后打开CCSM并将其设置为您最喜欢的行为!

(该终端仅用于记录Ubuntu版本。)

unity,launcher,ubuntu

您可能必须再次注销才能使其生效。

此修补程序还可以恢复旧的Click-To-Minimize行为。有关详细信息,请参阅this Webupd8 post

可以通过以下命令还原所有更改:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:ikarosdev/unity-revamped

或者,恢复较旧的道奇行为的黑客是reported on here

我尝试了”real dodge”版本,在我看来它适用于so-so。最值得注意的是,发射器不是”go above”活动窗口,而是将它们推到一侧,有时会卡住它(因此发射器不会再次消失)。通常,当发射器移动位置时,屏幕上的许多其他东西也是如此(例如,桌面上的图标)。

另一种方法是(几乎)永久地隐藏启动器(see here)并使用具有行为愿望的停靠点(例如cairo-dock)。

次佳解决办法

12.04

我担心闪避窗口的能力是故意从12.04移除的

根据Mark Shuttleworth

“dodge-windows approach tested very poorly. We thought it would work well, tried it, tested it, and have had to evolve from there based on evidence….

If users encounter the dodge by moving windows against the launcher, then it is fine. They see that the dodge happens when they push the launcher away, they discover they can move the window back and the launcher will reappear. So far so good.

Here’s the problem. Most users don’t discover the dodging by moving a window till it touches the launcher. They first encounter it when they maximise a window. So, they login to the desktop. Good. They start an app. Good. Then they maximise a window, and the launcher “disappears”. To these users, the behaviour is deeply uncomfortable, random. And these are in fact the majority of users. It also turns out that users who can work with dodging launchers can also work perfectly well with launchers which always hide when not used.”

默认情况下,启动器始终可见。

有关如何配置启动器的更多信息可以在Q& A中找到

How can I configure Unity’s launcher auto-hide behavior?


道奇Windows是WebUpd8涵盖的主题

一个有进取心的开发人员编写了一些脚本,当窗口移动到启动器区域时模仿闪避窗口的行为 – 即它隐藏和取消隐藏。

当窗口最大化时,可以使用类似的脚本自动隐藏启动器。

注意 – 这些是在binary deb format中。显然 – 从安全角度来看,不建议安装随机二进制文件。如果你想追求这个,请阅读这篇文章。

第三种解决办法

12.04

这是解决方案:https://help.ubuntu.com/community/Unity-ReplaceDodgeWindowsBehavior

玩得开心!

第四种办法

12.04

这个功能叫做闪避。从团结中被抛弃了。有非官方的解决方案来取回它。

有两种窗口躲闪行为可用:一种主要用于Ubuntu 11.10,另一种仅用于最大化窗口:

 real window dodge behaviour for the Unity Launcher and you can download it here: 

http://webupd8.googlecode.com/files/unity-dodge-windows_1.5_all.deb

 window dodge behaviour for maximized windows and you can download it here:

http://webupd8.googlecode.com/files/unity-dodge-maximized-windows_1.5_all.deb

有关详细信息,请参阅此post的相关章节。

第五种办法

12.04

Unity 2D是开箱即用的唯一途径。登录后,打开dconf-editor并导航到/com/canonical/unity-2d/launcher/hide-mode并将其值设置为2(默认值为0)。

第六种办法

13.10

这是可能的13.10,至少它在我的VM中测试得很好。

您(Seth)发现的旧脚本不起作用。但是,适用于12.10和13.04的较新脚本适用于13.10。

网站webupd8.org有说明。如上所述,说明书适用于12.10和13.04,但我在Virtualbox中对其进行了测试,并且它运行良好(与12.04版本相同,有一些限制,如文章所述,但总的来说它们运行良好)

不幸的是,Saucy的ppa还没有更新到包含这些脚本(至少没有我能够确定的那样)所以唯一的解决方案是直接下载它们。

有2个不同的脚本,它们不能一起安装。

一个脚本只能躲避最大化的窗口。它的最大限制是它允许启动器重叠在隐藏时打开的任何窗口。

另一个脚本带回了旧式的躲避窗口(几乎),因为它会在任何窗口(发射器)空间中隐藏发射器。我注意到的最大限制是,如果任何窗口打开位于启动器的空间中,即使该窗口最小化,启动器也会保持隐藏状态。

Here is the link to download the Dodge maximized windows script

Here is the link to download the “original” dodge windows script

我上面包含的下载链接直接来自webupd8.org上的文章。

我建议你阅读webupd8.org上我链接到的文章,它提供了一个很好的脚本概述,(我不想通过包含太多的文章进入抄袭领域。


为了充分披露,我没有玩13.10 VM的时间太长,但在我使用它的时候,我没有注意到闪避Windows脚本的任何意外问题。我也没有玩”original”闪避窗口脚本所需的长时间(可能是一个小时)因为我上面提到的隐藏的启动器限制并不是我喜欢的。闪避最大化的Windows脚本已经看到可能超过10小时的使用成功。


作为编辑说明(阅读我的意见,这完全取决于你付出的代价);这些”dodge windows”问题和解决方法遍布AU和互联网,我不明白为什么Canonical如此嫁给它是一个糟糕的功能。是的,我看过有关他们为什么删除它的文章,对我来说似乎是”thin soup”,显然很多用户都想要它,并且脚本运行得很好。

为了给予应有的信用(我认为*),我相信@JorgeCastro在12.04(闪避最大化的windows one)中编写了第一个work-around脚本。感谢一群豪尔赫,这个缺失的功能对我来说是一个交易破坏者,我正在考虑转离Unity(考虑到肉桂,但它是马车,所以你真的至少救了我。)

我已经采取了一些自由来包括这篇社论,我的意图不是开始讨论这个主题,只是为了说明在Ubuntu社区中似乎是一个普遍的看法。请不要作为讨论或我回答这个问题,否则mod将被迫编辑或删除此答案。

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/6605.html,未经允许,请勿转载。