How to remove the window padding on GTK3 apps in Awesome-WM

awesomegnome3gtk3window-decorationswindow-management

I use in a tiling mode for almost all my desktops. Since the advent of client side decorations in GTK3 some common Gnome project apps have taken to giving themselves a generous amount of padding outside of their main window border. I suspect this is for shadow effects, but it wreaks havok with the tiling system as the window sizing is done based on the padded size, not the normal window itself.

Notable offenders are nautilus and gedit, but other recently updated Gnome apps all have the some behavior.

screenshot

How can I configure GTK and/or AwesomeWM to ignore these paddings and size the windows based on the actual window geometry? The result I want is a zero-border, zero-padding tiled layout.

Best Answer

Add to ~/.config/gtk-3.0/gtk.css:

.window-frame {
  box-shadow: none;
  margin: 0;
}

(via https://bbs.archlinux.org/viewtopic.php?pid=1416334#p1416334)

I had to restart X for it to take effect - SIGHUP awesome was not sufficient.

Related Question