Custom scrollbar arrows position

A quick tip so that I don’t have to dig it out every time I need it (as I did yesterday for the tenth time, I think).

If you want to customize the displayed arrows in Gtk and GNOME applications, put this in ~/.gtkrc-2.0:

style "scrollbar-arrows" {
    GtkScrollbar::has-backward-stepper = 0           # top - up arrow
    GtkScrollbar::has-forward-stepper = 1            # bottom - down arrow
    GtkScrollbar::has-secondary-backward-stepper = 1 # bottom - up arrow
    GtkScrollbar::has-secondary-forward-stepper = 0  # top - down arrow
}

class "GtkScrollbar"  style "scrollbar-arrows"

This configuration will give you a NeXT-like behaviour, with both scrollbar arrows on the same side, on the bottom-right corner of the scrolled pane.

Unfortunately, this works with everything but Firefox (and other XUL applications like Thunderbird, I suppose).

Comments
  1. René Stadler said Wed, 03 May 2006 22:01:35 GMT

    http://cheeaun.phoenity.com/weblog/2004/08/scrollbar-tweaks.html has the solution for Firefox/Mozilla/XUL.

  2. Michele said Thu, 04 May 2006 13:09:41 GMT

    Thank you René, great tip.