可以从Alt+Tab应用切换器中移除“显示桌面”吗?
sudo apt-get install compizconfig-settings-manager
unity-tweak-tool
在15.04版本中可用.. - Jean Jordaanunity-tweak-tool
在 15.10 版本中可用。 - Zoltanunity-tweak-tool
在16.04版本中同样适用。 - Chrisunity-tweak-tool
在 17.04 版本中可用。 - Alex Bakerplugins/unityshell/src/LauncherController.cpp
中注释掉第900行,默认情况下会将“显示桌面”图标添加到切换器中:// results.push_back(pimpl->desktop_icon_);
将plugins/unityshell/src/unityshell.cpp
中的第1638行修改为:
if (!results.size() == 0)
而不是:
if (!(results.size() == 1 && results[0]->GetIconType() == AbstractLauncherIcon::IconType::TYPE_DESKTOP))
sudo apt-get install compizconfig-settings-manager
这是一个默认的、未自定义的来自存储库的 C.C.S.M.。
一个选择可能是回到11.10之前Alt+Tab的行为。
我意识到这有点激进,但这可能比没有好。
sudo apt-get source unity
diff -ru org/plugins/unityshell/src/LauncherController.cpp patch/plugins/unityshell/src/LauncherController.cpp
--- unity-5.20.0/plugins/unityshell/src/LauncherController.cpp 2013-04-12 04:24:42.000000000 -0400
+++ unity-diff/plugins/unityshell/src/LauncherController.cpp 2013-12-23 12:22:50.154961579 -0500
@@ -761,7 +761,7 @@
{
std::vector<AbstractLauncherIcon::Ptr> results;
- results.push_back(pimpl->desktop_icon_);
+ //results.push_back(pimpl->desktop_icon_);
for (auto icon : *(pimpl->model_))
{
diff -ru org/plugins/unityshell/src/unityshell.cpp patch/plugins/unityshell/src/unityshell.cpp
--- unity-5.20.0/plugins/unityshell/src/unityshell.cpp 2013-04-12 04:24:42.000000000 -0400
+++ unity-diff/plugins/unityshell/src/unityshell.cpp 2013-12-23 12:24:36.718966737 -0500
@@ -1909,7 +1909,8 @@
auto results = launcher_controller_->GetAltTabIcons(show_mode == switcher::ShowMode::CURRENT_VIEWPORT);
- if (!(results.size() == 1 && results[0]->GetIconType() == AbstractLauncherIcon::IconType::TYPE_DESKTOP))
+// if (!(results.size() == 1 && results[0]->GetIconType() == AbstractLauncherIcon::IconType::TYPE_DESKTOP))
+ if (!(results.size() == 0))
switcher_controller_->Show(show_mode, switcher::SortMode::FOCUS_ORDER, false, results);
return true;
sudo apt-get build-dep unity
sudo apt-get install cmake
cd <source folder>
# from the INSTALL file
mkdir build; cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCOMPIZ_PLUGIN_INSTALL_TYPE=package -DCMAKE_INSTALL_PREFIX=/opt/unity
make
sudo make install
/usr
而不是/opt/unity
,您就不必稍后进行rsync操作,但我想先尝试链接文件。我放弃了。sudo rsync -av /opt/unity/ /usr/
sudo apt-get install --reinstall unity-greeter
dconf
来管理您的Unity设置,那么通过检查dconf watch /
,此设置的路径为:/org/compiz/profiles/unity/plugins/unityshell/disable-show-desktop
true
,桌面将被移除作为alt-tab
选项。