(This was tested on Xubuntu 12.04, Xfce 4.10, with
xfwm4 as the window manager.)
It is definitely possible to have existing
firefox windows and newly opened ones automatically undecorated if you are using the latest version of
devilspie, version 0.22. This is in the repositories and available to install with:
sudo apt-get install devilspie
There is also a gui called
gdevilspie, but the rules it produced seemed inaccurate and often didn't quite work, so it is easiest to concoct a rule by reading the readme and the manpage.
How the rule was created
All rules created must go in
~/.devilspie, and have a
.ds extension, so firstly create the folder if it doesn't exist with
If you want to experiment to find the best window matching condition (class,name,etc), you can create a new file in
test.ds and place in it
(debug) . Now you can enter
devilspie & and then for every program that you launch,
devilspie will examine and provide some window information in the terminal:
Window Title: 'Mozilla Firefox'; Application Name: 'Firefox'; Class: 'Firefox'; Geometry: 1280x970+0+27
In this case, it is best to select Class (
window_class), as that will reliably identify the window.
Create a new file called
~/.devilspie and place in it:
; firefox rule to undecorate all existing and new windows
(if (is (window_class) "Firefox") (undecorate))
Comments are introduced with
; and are not read. You do not need to use
begin in the command unless you are specifying multiple actions, such as
(begin undecorate (set_workspace 2))) instead of just the single action
devilspie to read the new rule you must restart it, so run
and then restart it with
You have to do this every time when you edit a rule or add a new one in
~/.devilspie, otherwise the changes or any new rules will not be read.
It is also very important that you add it to startup applications using your desktop environment's menus.
For more information on other possibilities with
man devilspie or the Ubuntu manpages online.