Skip to content

replace the "Applications" text in the panel with the elementary OS logo

Notifications You must be signed in to change notification settings

milosmrda/elementary-panel-logomark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 

Repository files navigation

elementary-panel-logomark

Replace the "Applications" text in the panel with the elementary OS logo/icon.

usage

step 1 - download logo

Download one of the following logos by pasting the corresponding command into the terminal:

  • 20px logo (scaling-factor 1): wget https://git.io/v9et4 -O ~/.config/gtk-3.0/logo.png
  • 40px logo (scaling-factor 2): wget https://git.io/v9etB -O ~/.config/gtk-3.0/logo.png
  • 60px logo (scaling-factor 3): wget https://git.io/v9etE -O ~/.config/gtk-3.0/logo.png

Most users should choose 20px; larger versions are for displays that have been "zoomed in" with scaling-factor. (Check this factor with gsettings get org.gnome.desktop.interface scaling-factor | sed 's/.* //'; the default, unzoomed value is 1.)

step 2 - replace "Applications" text with logo

Paste the following block of code in the terminal:

bash -ec "

# get slingshot-launcher source and the packages required to build it
cd /tmp; sudo rm -rf slingshot-launcher*
apt source slingshot-launcher; sudo apt build-dep slingshot-launcher

# edit source code (remove 'Applications' text and add css class `.logo`)
cd slingshot-launcher*
sed -i '/App/a indicator_label.get_style_context().add_class(\"logo\");' \
src/Slingshot.vala
sed -i 's/Applications/ /' src/Slingshot.vala

# build and install source code
mkdir build; cd build; cmake .. -DCMAKE_INSTALL_PREFIX=/usr; sudo make install

# add logo to wingpanel with custom css styling
grep '^\.logo' ~/.config/gtk-3.0/gtk.css || echo '.logo{background:url(\"logo.\
png\") no-repeat center/20px;padding:0 10px}' >> ~/.config/gtk-3.0/gtk.css

# restart wingpanel
killall wingpanel; wingpanel &"

reversal

To revert to the default "Applications" text, paste this block in the terminal:

bash -c "

# reinstall the original slingshot-launcher
sudo apt install --reinstall slingshot-launcher

# remove the custom css styling
sed -i '/^\.logo/d' ~/.config/gtk-3.0/gtk.css

# restart wingpanel
killall wingpanel; wingpanel &"

About

replace the "Applications" text in the panel with the elementary OS logo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published