How to Make Scrollbar Always Visible in Ubuntu 18.04

Last updated: September 18, 2019

gnome shell

This quick tutorial shows how to make the scrollbars of GTK3 applications always visible, like Gnome terminal does, no matter whether the mouse cursor is moved over or not.

The scrollbar is only visible when the mouse cursor is moved mover in most of GTK3 applications. It will disappear in a few seconds once the cursor’s moved away.

On a per-app basis, you can start application by setting GTK_OVERLAY_SCROLLING=0 environment variable.

For example, open terminal (Ctrl+Alt+T) and run command to launch Gedit text editor:

GTK_OVERLAY_SCROLLING=0 gedit

To apply for all applications for current user, open terminal (Ctrl+Alt+T) and run command to edit .profile file:

gedit ~/.profile

When the files opens in text editor, add following 2 lines in the end and save the file.

export GTK_OVERLAY_SCROLLING=0
gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.UpdateActivationEnvironment '{"GTK_OVERLAY_SCROLLING": "0"}'

To apply changes, simply log out and login back.

To restore the changes, edit .profile file again and remove the previous lines.

Twitter

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected] Buy me a coffee: https://ko-fi.com/ubuntuhandbook1 |

2 responses to How to Make Scrollbar Always Visible in Ubuntu 18.04

  1. Is there any other method for achieving this?
    For something as simple as getting a scrollbar that looks like before, I need to touch three different places:
    ~/.config/gtk-3.0/settings.ini to fix the “left button will scroll a page at a time”
    ~/.config/gtk-3.0/gtk.css to make the scrollbar wide enough to grasp it easily,
    and ~/-profile to make it not disappear.
    It would be nice if the “don’t disappear” parameter could be set in one of the .config/gtk-3.0 files to keep things a bit closer together.

  2. Another reason to hate GNOME…

    Seriously, why there is no GUI way to just set how we would like our scrollbars to behave?

    I stll remember the “Bla, bla, bla…” Help for modem line I stumbled on GNOME all those years back… nothing has change with the GNOME programmers. They would have us use the Terminal exclusively if it where up to them.