Saturday, June 4, 2011

Hide the resize grip in Ubuntu 11.04

In Ubuntu 11.04, they added a gray box/triangle to the lower right hand corner of GTK windows (to help people who were trying to resize by dragging it, I guess). For those of us that use Alt+Right Mouse Button to resize their windows, it's pretty obnoxious. Hide it by putting the following in your .gtkrc-2.0 file:

style "default-style"
{
GtkWindow::resize-grip-height = 0
GtkWindow::resize-grip-width = 0
}

class "GtkWidget" style "default-style"


See here for more info.

EDIT: It looks like the .gtkrc-2.0 file will be overwritten by Gnome every time you change your theme. However, it will always include the contents of .gtkrc.mine, if it exists. I recommend putting the above in there instead.

No comments: