5

I'm using Ubuntu with GNOME desktop.

I was wondering how to change the "Show Applications" button icon on the dash?

enter image description here

1 Answer 1

3
+50

This button is added by "Show Applications" extension, isn't it? This extension relies on view-grid-symbolic.svg icon, located in /usr/share/icons/gnome/scalable/actions folder of the Gnome icon theme. This info can be obtained when you download this extension directly and investigate its contents.

Now you have 2 ways to replace its icon.
1. You can use your scalable icon my-cool-icon.svg instead of it:

sudo cp -p /usr/share/icons/gnome/scalable/actions/view-grid-symbolic.svg /usr/share/icons/gnome/scalable/actions/view-grid-symbolic.svg.bak
sudo cp my-cool-icon.svg /usr/share/icons/gnome/scalable/actions/view-grid-symbolic.svg
cd /usr/share/icons ; sudo gtk-update-icon-cache gnome

The last string updates the cache of your icons to make your new icon appear. If it won't, restart Gnome.
This method isn't the best one, as it replaces one of the system icons, which may be used by some other application. That's why the second one is preferable.

2. You should find where this extension is located and alter its code, so it will point to another icon. First, create this icon:

sudo cp my-cool-icon.svg /usr/share/icons/gnome/scalable/actions/show-applications-extension-symbolic.svg

You can find your installed extensions in $HOME/.local/share/gnome-shell/extensions/ folder. Find the folder starting with showapplications@ within it, enter it and find extension.js file. Make a backup of it for safety, open it with your favorite editor and find the next string:

let icon = new St.Icon({ icon_name: 'view-grid-symbolic',

Replace view-grid-symbolic inside the quotes with the new one, i.e. show-applications-extension-symbolic.svg. That's it. Restart Gnome if the change doesn't appear instantly.
If it still not visible, update icon cache as explained above.

Reference

7
  • The Show Applications button is built in to GNOME Shell; no extension needed. Maybe an extension could change its icon name though. Jun 25, 2016 at 5:25
  • Then 1st method should work anyway.
    – whtyger
    Jun 25, 2016 at 7:21
  • 2
    i have ubuntu 17.10 with dash to panel extension enabled and none of these works.
    – Max
    Jan 17, 2018 at 21:24
  • @Max "Dash to Panel" isn't the extension OP asked about. Nevertheless I checked DtP source - it doesn't contain the mentioned icon. That means that it uses the one existing in Gnome. Try to find it in the newer Gnome versions with find /usr/share/icons -type f -name view-grid-symbolic.svg (there may be several of them). Backup it and replace it with the desired SVG icon. Rebuild the appropriate icon cache and behold. If it doesn't work, restore original icon and try the next one found. Should work eventually.
    – whtyger
    Jan 24, 2018 at 8:20
  • With default icon theme (Adwaita) the launcher icon is located into /usr/share/icons/Adwaita/scalable/actions/view-app-grid-symbolic.svg I am using Numix-Square icon theme but i cannot find such icons. i looked into the index.theme file in the root of the icon theme and there is an inherit instruction linked to Numix theme and Numix inherit itself from gnome and hicolor icon theme. but again i cannot find any svg icon on these inherited folders that looks like a grid.
    – Max
    Jan 25, 2018 at 21:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .