It seems that Pantheon applications mess with i3 by adding a huge gap between windows/frames like in the screenshot below.

enter image description here

Is there a way to use Pantheon applications in i3 without that border/margin? I guess it's the shadows of Pantheon applications that cause this, so is there a way to disable them?

(I'm running Elementary OS 0.4 x86_64 with i3 v4.11. My previous desktop manager was lightdm v1.18.3, which is still installed.)

1 Answer 1


Here's what did it for me:

  • cd into ~/.config/gtk-3.0 (create it if it isn't there)

  • touch gtk.css or append to gtk.css if it already exists

  • In your favorite text editor add the following:

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

Save it, logout, log into i3wm and you should be good to go.

  • YAY! You are welcome. I was really happy to discover this. And although I don't always use the i3 session, when I go to school for coding this is going to be extra handy. Jun 8, 2017 at 22:10
  • So, I am currently having a problem with this. I will keep you updated on any new progress. Jul 22, 2017 at 3:10
  • After getting back to eOS' default DM, I noticed that handles for resizing windows were missing. But to get them back without the ugly black margin in i3, just use .window-frame {box-shadow: none; margin: 2px;}.
    – Cubi73
    Jul 22, 2017 at 15:57
  • Does the original solution still work for you though? Jul 22, 2017 at 16:51
  • Yes, it does. Neither Pantheon nor i3 are broken in any way, when using this CSS hack, and there's no black margin around my windows in i3. (You need to fix the colon between none and margin though)
    – Cubi73
    Jul 22, 2017 at 16:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .