javascript 如何去除 Centos 7 桌面(热点)右上角的效果?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/29993531/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I remove the Centos 7 Desktop (Hot Corner) top right effect?
提问by jemiloii
So I have a fresh install of Centos 7 Desktop version. It uses gnome 3.8 and I have multiple monitors. When I go left to right with my mouse on the top portion of the screen, it shows me all my open windows, side by side. I can also hit the windows (Overview Mode) button to see the same effect. It's distracting me and making me waste time and my train of thought.
所以我全新安装了 Centos 7 桌面版。它使用 gnome 3.8,我有多个显示器。当我用鼠标在屏幕顶部从左到右移动时,它会并排显示我所有打开的窗口。我也可以点击窗口(概览模式)按钮来查看相同的效果。这让我分心,让我浪费时间和思路。
How can I disable this feature?
如何禁用此功能?
I checked the tweak tool and nothing. When I tried googling it, everyone says is a CompizConfig setting. Well I don't have a compiz config tool.
我检查了调整工具,什么也没有。当我尝试使用谷歌搜索时,每个人都说是 CompizConfig 设置。好吧,我没有 compiz 配置工具。
回答by turiyag
I JUST figured this out for CentOS Linux release 7.5.1804, it's Oct 6, 2018 today.
我刚刚为 CentOS Linux 7.5.1804 版发现了这一点,今天是 2018 年 10 月 6 日。
So this has been made vastly easier by the people who make CentOS.
因此,开发 CentOS 的人使这变得更加容易。
yum install gnome-tweak-tool gnome-shell-extension-no-hot-corner
Then, you should find it in your Applications -> Utilities -> Tweak Tool -> Extensions -> "No topleft hot corner". If the tweak tool is there but the extension is not, try rebooting. I needed to reboot, but the tutorial that I found said I shouldn't need to.
然后,您应该在您的应用程序 -> 实用工具 -> 调整工具 -> 扩展 -> “无左上角热角”中找到它。如果调整工具存在但扩展程序不存在,请尝试重新启动。我需要重新启动,但是我找到的教程说我不需要重新启动。
If youu don't find "No topleft hot corner" in Extensions section of Tweak Tool, Click "Get More Extensions" and search for "No topleft hot corner". Download it and add it in Extensions section and you are done.
如果您在 Tweak Tool 的扩展部分没有找到“无左上热角”,请单击“获取更多扩展”并搜索“无左上热角”。下载它并将其添加到扩展部分,您就完成了。
回答by jemiloii
Took a while but I found the culprit! It lives within /usr/share/gnome-shell/js/ui/layout.js
Just look for the function below and comment out the code inside. Afterwards, type Alt+F2
and type restart
. It's take a second or two and will only reset gnome. You might have to do a wireless re-login and system re-log, but all your applications stay alive.
花了一段时间,但我找到了罪魁祸首!它存在于/usr/share/gnome-shell/js/ui/layout.js
只需查找下面的函数并将其中的代码注释掉即可。然后,键入Alt+F2
并键入restart
。这需要一两秒钟,并且只会重置 gnome。您可能需要进行无线重新登录和系统重新登录,但您的所有应用程序都保持活动状态。
_toggleOverview: function() {
//if (this._monitor.inFullscreen)
return;
/*if (Main.overview.shouldToggleByCornerOrButton()) {
this._rippleAnimation();
Main.overview.toggle();
}*/
},
回答by stuhpa
My answer pertains to gnome 3.22 but I'm still writing this answer hoping that it might help somebody. I lost hours trying various suggested ideas until finally managed to do it in a correct way.
我的答案与 gnome 3.22 有关,但我仍在写这个答案,希望它可以帮助某人。我花了几个小时尝试各种建议的想法,直到最终设法以正确的方式做到这一点。
Find your Gnome shell version:
找到您的 Gnome shell 版本:
gnome-shell --version
gnome-shell --version
Download no-topleft-hot-corner extension from gnome extensions, its ID is currently 118: https://extensions.gnome.org/extension/118/no-topleft-hot-corner/
从gnome extensions下载no-topleft-hot-corner扩展,目前ID为118:https://extensions.gnome.org/extension/118/no-topleft-hot-corner/
In my case zip was: https://extensions.gnome.org/extension-data/nohotcorner%40azuri.free.fr.v16.shell-extension.zip
在我的情况下 zip 是:https: //extensions.gnome.org/extension-data/nohotcorner%40azuri.free.fr.v16.shell-extension.zip
Unpack zip on correct place, I also needed to change the permissions for one of the files.
在正确的位置解压 zip,我还需要更改其中一个文件的权限。
$ sudo mkdir -p "/usr/share/gnome-shell/extensions/[email protected]"
$ sudo unzip -o ~/Downloads/[email protected] -d "/usr/share/gnome-shell/extensions/[email protected]"
$ sudo chmod 664 [email protected]/metadata.json
Restart gnome after the installation
安装后重启gnome
$ gnome-shell --replace &
Then restart the Tweak tool as well and activate the extension within it.
然后也重新启动 Tweak 工具并激活其中的扩展。
Note: I first tried installing the extension in user space, which did not work. Then I tried installing it in system space, and finally got it to work.
注意:我首先尝试在用户空间安装扩展,但没有成功。然后我尝试在系统空间中安装它,终于让它工作了。
回答by Rajnish
Go to Applications -> Utilities -> Tweak Tool -> Extensions. Now check option as "No topleft hot corner" and make it as "ON".
转到应用程序 -> 实用工具 -> 调整工具 -> 扩展。现在选中“无左上角热角”选项并将其设置为“开”。
But if you don't find "No topleft hot corner" then check for options in Extension section of Tweak Tool, then in Extensions section of Tweak Tool, Click "Get More Extensions". Search for "No topleft hot corner" in the website opened after clicking on it. Extract the downloaded file. You will get two files in it. Now add <.json> out of two in Extensions section and you are done.
但是,如果您没有找到“没有左上角热角”,请检查调整工具的扩展部分中的选项,然后在调整工具的扩展部分中,单击“获取更多扩展”。在点击打开的网站中搜索“无左上角热角”。提取下载的文件。您将在其中获得两个文件。现在在扩展部分添加 <.json> 两个,你就完成了。