diff options
Diffstat (limited to 'meta-openembedded/meta-gnome/recipes-gnome/devilspie/files/default.lua')
-rw-r--r-- | meta-openembedded/meta-gnome/recipes-gnome/devilspie/files/default.lua | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta-openembedded/meta-gnome/recipes-gnome/devilspie/files/default.lua b/meta-openembedded/meta-gnome/recipes-gnome/devilspie/files/default.lua new file mode 100644 index 0000000000..22a17fe98e --- /dev/null +++ b/meta-openembedded/meta-gnome/recipes-gnome/devilspie/files/default.lua @@ -0,0 +1,46 @@ +-- 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 |