How can decoration for a single window be removed using a bash or third party program in gnome 3?
Asked
Active
Viewed 5,227 times
12
-
1only this worked for me https://unix.stackexchange.com/a/421805/30352 – Aquarius Power Jan 11 '19 at 18:50
1 Answers
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
-
1I 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
-
-