為了更好地查看,您可以更改 Ubuntu 桌面中的 GTK 和圖標主題。 但是大多數圖標主題不會更改 Unity Launcher 中的 Dash 圖標。
準確地說,Ubuntu 標誌(Unity Dash 圖標)是 launcher_bfb.png 文件位於 /usr/share/unity/icons. 只需用自定義圖標文件替換這個 128×128 像素的 png 文件即可在下次登錄時更改 Dash 圖標。
目標:
- 通過替換 launcher_bfb.png 文件來更改 Unity Dash 圖標。
- 享受!
開始:
1. 首先備份原來的圖標。 這一步是 選修的 因為您可以通過重新安裝 libunity-core-6.0-9 包含圖標的包。
打開終端 (Ctrl+Alt+T),粘貼下面的命令並點擊運行:
cd /usr/share/unity/icons/ && sudo mv launcher_bfb.png launcher_bfb.orig.png
您需要在提示時輸入密碼,因為該圖標屬於 root。
2. 從網上獲取一個新的方形 Unity 圖標。 就我而言,它是一個 256×256 像素的 png 文件:
這個大小適用於我的情況,但最好通過命令將其調整為 128×128 像素(原始文件大小):
mogrify -resize 128 /PATH/TO/ICON
在我的例子中,命令是 mogrify -resize 128 ~/Downloads/ubuntu-logo.png:
3. 最後將圖標移動到 /usr/share/unity/icons/ 並通過單個命令重命名為 launcher_bfb.png:
sudo mv /PATCH/TO/ICON /usr/share/unity/icons/launcher_bfb.png
它是 sudo mv ~/Downloads/ubuntu-logo.png /usr/share/unity/icons/launcher_bfb.png 在我的情況下。
最後註銷並重新登錄。 Dash 圖標會發生變化。
4. 為了更好,更改新的launcher_bfb.png文件的所有權,因為它屬於root:
sudo chown root:root /usr/share/unity/icons/launcher_bfb.png
恢復原來的 Unity Dash 圖標:
要撤消更改,只需通過命令移回原始圖標文件:
cd /usr/share/unity/icons/ && sudo mv launcher_bfb.orig.png launcher_bfb.png
或者通過命令重新安裝 libunity-core-6.0-9:
sudo apt install --reinstall libunity-core-6.0-9