avs_mtk_voice/meta/meta-openembedded/meta-gnome/recipes-gnome/devilspie/files/default.lua

47 lines
1.2 KiB
Lua
Raw Normal View History

2022-05-13 08:02:31 +00:00
-- 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