12

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

1

1 Answer 1

22
+50

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.

6
  • great, didn't you find an extension to do this from GUI? I miss that fine control level provided by old gnome and unity Commented Sep 21, 2018 at 17:10
  • wow, it is you! xprop didnt work here, but this worked great gist.github.com/muktupavels/d03bb14ea6042b779df89b4c87df975d , here is 16.04 Unity/compiz, thx! xD Commented Jan 11, 2019 at 19:10
  • 1
    I think a link to your C code could be part of your answer like here: unix.stackexchange.com/a/421805/30352 :) Commented Jan 11, 2019 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. Commented Jan 12, 2019 at 14:38
  • Works with Cinnamon on Linux Mint 19 too
    – d9k
    Commented Jan 8, 2020 at 6:26

You must log in to answer this question.

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