Customize scrollbar width for Firefox and other GTK3 apps in Linux

Hallelujah! The ridiculously thin vertical scrollbars with Firefox, Thunderbird, and any other Linux apps that use GTK3 for their window toolkit has annoyed me for sooo long. But I just found this simple, excellent fix, courtesy of this post at superuser.com.

Create ~/.config/gtk-3.0/gtk.css if it doesn’t exist and add the following contents:

scrollbar, scrollbar button, scrollbar slider {
    -GtkScrollbar-has-backward-stepper: true;
    -GtkScrollbar-has-forward-stepper: true;
    min-width: 20px;
    min-height: 20px;
    border-radius: 0;
}

Change min-width and min-height to whatever value you want the scrollbar width to be.

This will override theme-specific scrollbar width settings, so you never have to worry again about the scrollbars becoming ridiculously thin after changing the GTK3 theme!


Comments

3 responses to “Customize scrollbar width for Firefox and other GTK3 apps in Linux”

  1. Adrian Avatar
    Adrian

    Thank you! You saved my life, while the thin scrollbar looks nice, it’s in no way usable for a heavy user like myself.

    1. admin Avatar

      I agree. Thin/ununsable scrollbars seems to be a common malady with far too many applications!

  2. Brandon L Avatar
    Brandon L

    Thank you!

Leave a Reply to admin Cancel reply