edit -June 7, 2018 - Upon further inspection the QT theme seems to have steppers (invisible or not) regardless of gtk theme options
Do you prefer classic scrollbars with buttons to click at the top and bottom? The kind that doesn't hide when you're not looking? I do, especially because the trackpad on my laptop makes it hard to click and drag. Here we'll see how to add the buttons at the top and bottom of the scrollbar and how to make the scrollbars stop disappearing when you move your mouse.
1.) Add scrollbar steppers
MX, for the most part, uses three different toolkits - gtk2, gtk3, and qt5. qt5, by default, will mimic gtk2, so we only need to talk to gtk2 and gtk3 here to get our scrollbar "steppers" (buttons). For gtk2, we can add this file:
~/.gtkrc-2.0
Code: Select all
style "scrollbar-steppers"
{
GtkRange::stepper-size = 13
GtkScrollbar::stepper-size = 13
GtkScrollbar::has-backward-stepper = 1
GtkScrollbar::has-forward-stepper = 1
}
class "GtkScrollbar" style "scrollbar-steppers"
~/.config/gtk-3.0/gtk.css
Code: Select all
.scrollbar,
scrollbar {
-GtkScrollbar-has-backward-stepper: 1;
-GtkScrollbar-has-forward-stepper: 1;
}
2.) Disable scrollbar overlay
To disable this behavior we need to set an environmental variable. This can be done in a number of ways, for consistency here I've decided to do so with a little config file in Xsession.d. As root, add the following file:
/etc/X11/Xsession.d/97scrollbars
Code: Select all
export GTK_OVERLAY_SCROLLING=0
You may notice qt applications like Featherpad won't actually show the steppers under certain themes such as the default Greybird-mx17, whereas in others like Numix they will. They work either way by clicking where the button is or should be.
Default - Default theme with steppers and disabled scrollbar overlay - Numix theme with steppers and disabled scrollbar overlay -