12

How can decoration for a single window be removed using a bash or third party program in gnome 3?

user41209
  • 639
  • 6
  • 16

1 Answers1

22

You can try to use _MOTIF_WM_HINTS...

To remove decorations:
xprop -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS "0x2, 0x0, 0x0, 0x0, 0x0"

To add decorations:
xprop -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS "0x2, 0x0, 0x1, 0x0, 0x0"

xprop will then ask you to select window or if you know window id then you can also pass -id parameter to xprop. Only you can not use mouse to resize windows, but keybindings should work.

muktupavels
  • 1,366
  • 1
  • 11
  • 23
  • great, didn't you find an extension to do this from GUI? I miss that fine control level provided by old gnome and unity – Andrés Alcarraz Sep 21 '18 at 17:10
  • wow, it is you! xprop didnt work here, but this worked great https://gist.github.com/muktupavels/d03bb14ea6042b779df89b4c87df975d , here is 16.04 Unity/compiz, thx! xD – Aquarius Power Jan 11 '19 at 19:10
  • 1
    I think a link to your C code could be part of your answer like here: https://unix.stackexchange.com/a/421805/30352 :) – Aquarius Power Jan 11 '19 at 19:34
  • 1
    @AquariusPower This answer is older than my code and links can become obsolete... `xprop` should now work with compiz, at least it was supposed to be [fixed](https://bugs.launchpad.net/compiz/+bug/1702297). – muktupavels Jan 12 '19 at 14:38
  • Works with Cinnamon on Linux Mint 19 too – d9k Jan 08 '20 at 06:26
  • Is there a way to do this when launching the program? – Rasmus Jan 01 '21 at 17:32