5

I need to know if it is possible and how to disable the Ubuntu 18.04 Dock tool-tips for mouse hover the pinned application.

Ubuntu Dock

4

there is no direct or simply way to configure what we need in question.
But it can be done by editing the User Shell theme that is in use.

if you are using default theme in 18.04, below is the way to achieve.

first take back up of /usr/share/gnome-shell/theme/ubuntu.css file.

now open the file with you favorite text editor, mine is gedit, so

sudo -H gedit /usr/share/gnome-shell/theme/ubuntu.css

go to line number 1205 and find the below content.

.dash-label {
  border-radius: 7px;
  padding: 4px 12px;
  color: #eeeeec;
  background-color: rgba(46, 52, 54, 0.7);
  text-align: center;
  -x-offset: 8px; }

Change it to

.dash-label {
  border-radius: 7px;
  padding: 4px 12px;
  color: #eeeeec;
  background-color: none;
  font-size: 0pt;
  text-align: center;
  -x-offset: 8px; }

save the file & close. Reboot to see the change.

enter image description here

if you use different User-Shell themes, you may find same content and editing it as above.

19
  • Got it done ... i made a copy if the file content as backup version and i apply the changes as stated .. after rebooting Tooltips were gone .. – gastori Nov 23 '18 at 13:19
  • @PRATAP, very nice touch. Probably you best recommend to edit the original file, which is /usr/share/gnome-shell/theme/gnome-shell.css. All other files link to that one. Yet, the header of the file says " do not edit because the file is generated. There might be a better and more persistent way to effectuate the change (aka editing another file). Yet, for now, the hack may do the job. – vanadium Nov 23 '18 at 14:31
  • is it possible to set a timeout instead of completely hiding the tooltips? – s.ouchene Feb 19 '19 at 21:40
  • oh sorry the timeout is hardcoded.. – UnKNOWn Feb 20 '19 at 3:58
  • Hello, is there a way to disable the tooltips in Ubuntu 20.04? because the css file doesn't exist. – s.ouchene May 21 '20 at 20:21
0
sudo vim /usr/share/gnome-shell/theme/ubuntu.css

or

sudo nano /usr/share/gnome-shell/theme/ubuntu.css

or any text editor launched with sudo..

Search: .dash-label

You will see something like:

.dash-label {
  border-radius: 7px;
  padding: 4px 12px;
  color: #eeeeec;
  background-color: rgba(0, 0, 0, 0.7);
  text-align: center;
  -x-offset: 8px;
 }

Backup it. Then replace or comment with /* ... */ old and add:

.dash-label {
  font-size: 0;
 }
3
  • S_Flash .. i followed the instruction from PRATAP .. but I have a question??? the file you are suggesting is pretty much the same but it is in different path and is the ubuntu.css .. what is the main difference .. – gastori Nov 23 '18 at 13:20
  • Somme tweak tools, extensions can use backup css + some themes can use different names and path's. – mature Nov 23 '18 at 13:47
  • Thanks .. I appreciate .. both of you were very helpful .. – gastori Nov 23 '18 at 13:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.