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.
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.
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.