Way easier if you can use devilspie2
from your distro.
Example: I want the "Album Art" window from Audacious to not display the window title.
STEP 1. Install devilspie2
, here is an example for Debian (if your distro is not based on Debian, use the required command for your distro):
# apt-get install devilspie2
STEP 2. Right after installing devilspie2
, execute in terminal (it will create the ~/.config/devilspie2
folder):
$ devilspie2
STEP 3. Create a Lua code debug file, so you can find out your app and window names by creating a file called debug.lua
under same ~/.config/devilspie2
folder, with his contents:
debug_print("Application: " .. get_application_name());
debug_print("Window: " .. get_window_name());
Run devilspie2 in debug mode with:
$ devilspie2 --debug
Now every time you start or activate an app, it will list, in the terminal, its app name and window name. You will need this for the next step. With that information, you can stop the devilspie2
process with CTRL+C
.
STEP 4. Then, create a Lua code file, for example, in my case named:
$ touch $HOME/.config/devilspie2/audacious.lua
For me, the code which allows the respective window to have the window title decoration hidden is:
--[[
Hide window title for audacious > Album Art window
]]
function isMatch(appName, windowName)
if (string.match(get_application_name(), appName) and string.match(get_window_name(), windowName)) then
return true;
end
return false;
end
if (isMatch("Audacious", "Album Art")) then
undecorate_window();
end
Customize the application and/or window name in the code above.
Save the file.
To test: Close your app (in my case, audacious
). Run devilspie2
in terminal. Open your app, see if everything works as expected.
If everything works fine, you can set up devilspie2
to auto-start when you login. In XFCE, that is done in "Session and Startup" settings, by adding a simple entry to call the executable devilspie2
. Check the documentation for your DE / distro which is responsible for auto-starting apps on login.
Logout, and log back in. Start the app (audacious
in my case) and check it out. The window decoration is gone.
yourWindow.dTitleBar: 0
.