summaryrefslogtreecommitdiffstats
path: root/meta-openembedded/meta-gnome/recipes-gnome/devilspie/files/default.lua
diff options
context:
space:
mode:
authorDave Cobbley <david.j.cobbley@linux.intel.com>2018-08-14 10:05:37 -0700
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-08-22 21:26:31 -0400
commiteb8dc40360f0cfef56fb6947cc817a547d6d9bc6 (patch)
treede291a73dc37168da6370e2cf16c347d1eba9df8 /meta-openembedded/meta-gnome/recipes-gnome/devilspie/files/default.lua
parent9c3cf826d853102535ead04cebc2d6023eff3032 (diff)
downloadtalos-openbmc-eb8dc40360f0cfef56fb6947cc817a547d6d9bc6.tar.gz
talos-openbmc-eb8dc40360f0cfef56fb6947cc817a547d6d9bc6.zip
[Subtree] Removing import-layers directory
As part of the move to subtrees, need to bring all the import layers content to the top level. Change-Id: I4a163d10898cbc6e11c27f776f60e1a470049d8f Signed-off-by: Dave Cobbley <david.j.cobbley@linux.intel.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
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.lua46
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 000000000..22a17fe98
--- /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
OpenPOWER on IntegriCloud