blob: 22a17fe98e4abb3b0cb0d6b2d9c4530ee9fec851 [file] [log] [blame]
-- Copyright (c) 2012 Andreas Müller <schnitzeltony@googlemail.com>
--
-- this is an example
-- * undecorating all windows opened maximized
-- * maximizing and undecorating all appplication's windows in apps_list
-- for further information see
-- http://www.gusnan.se/devilspie2/manual.php
wnd_type = get_window_type()
if(wnd_type == "WINDOW_TYPE_NORMAL") then
-- add only applications you want maximized+undecorated and
-- which don't keep maximized state
apps_list =
{
"Terminal",
"ristretto",
"xarchiver",
}
app_name = get_application_name()
-- to have some informational output, start devilspie2 with --debug
-- option and uncomment the following lines:
--debug_print ("Window Name: " .. get_window_name())
--debug_print ("Application name: " .. app_name)
--debug_print ("window-type: " .. wnd_type)
-- undecorate all windows starting maximized
if (get_window_is_maximized()) then
undecorate_window()
-- maximize/undecorate all windows in apps_list
-- (unfortunately for some also their settings)
else
for line, str in ipairs(apps_list) do
if (string.find(app_name, str)) then
maximize()
undecorate_window()
break
end
end
end
end