如何使 ALT+TAB 切换器图标变小

And*_*rew 8 icons application-switcher

有什么方法可以减小按 ALT+TAB 时显示的默认 Ubuntu 13.04 窗口切换器图标的大小?例如,更改 Compiz 设置(使用文本编辑器,如果不在 CCSM GUI 中)或安装不同的窗口切换器。谢谢你的帮助,祝你有美好的一天。

Rom*_*uet 10

As far as I know...the size of the default "Switcher View (Alt+Tab)" is hardcoded in the Unity source.
You can try to edit the source code to change the size according to your needs.


NOTE: I recommend you to do this in a Virtual Machine or in a Test Machine to see if you get the desired results.
In this example I'm running Ubuntu 13.04 with unity 7.0.0 and I will change the "Switcher View" (icons, tiles, etc.) to the half-size.


1) Make sure you have enable the Source code repository.

  • Open the Ubuntu Software Center
  • In the Menu Bar choose Edit -> Software Sources. Click to enable "Source code repository". Just in case I use the "Main Server" to Download.

在此处输入图片说明

Open a Terminal window Ctrl+Alt+T and type:

  • sudo apt-get update

2) In the Terminal type the following to install the necessary packages.

  • sudo apt-get install build-essential python-windowmocker quilt

3) Install build dependencies.

  • sudo apt-get build-dep unity

4) Create a folder to download the source code.

  • mkdir ~/Downloads/src

  • cd ~/Downloads/src

5) Download the source code & Export variables.

  • apt-get source unity

  • export QUILT_PATCHES=debian/patches

  • export EDITOR=gedit

6) Create the patch and Edit the source code.

  • cd unity-7.0.0daily13.06.19~13.04/

  • quilt new 99-custon-switcher-size.patch

  • quilt edit launcher/SwitcherView.cpp


Edit the lines... 46 to 50.

在此处输入图片说明

I changed them from:

  , border_size(50)
  , flat_spacing(20)
  , icon_size(128)
  , minimum_spacing(10)
  , tile_size(150)
Run Code Online (Sandbox Code Playgroud)

To:

  , border_size(25)
  , flat_spacing(10)
  , icon_size(64)
  , minimum_spacing(10)
  , tile_size(75)
Run Code Online (Sandbox Code Playgroud)

7) Build the deb packages.

  • quilt refresh
  • fakeroot dpkg-buildpackage

8)安装 deb 包。

  • cd ..

  • sudo dpkg -i *deb

9)最后,您可以重新启动机器以查看更改。

前:

在此处输入图片说明

后:

在此处输入图片说明

希望这可以帮助。

  • @Andrew...好吧,我写了一步一步,以便用户可以遵循它。你可以试一试。 (2认同)