aboutsummaryrefslogtreecommitdiffstats
path: root/meta-gnome/recipes-gnome/devilspie/files
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2012-11-14 12:34:01 +0100
committerKoen Kooi <koen@dominion.thruhere.net>2012-12-04 11:25:35 +0100
commitde7c5162f83bc4e9eb6ecb9d8e8717049bb8df00 (patch)
treea8645a192f9f383a2bbe96061684ade00c6334d3 /meta-gnome/recipes-gnome/devilspie/files
parent80498a8cc8a96f269a97f36d71b1f8065cd5ece8 (diff)
downloadmeta-openembedded-contrib-de7c5162f83bc4e9eb6ecb9d8e8717049bb8df00.tar.gz
devilspie2: move to meta-gnome (libwnck is there)
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Diffstat (limited to 'meta-gnome/recipes-gnome/devilspie/files')
-rw-r--r--meta-gnome/recipes-gnome/devilspie/files/default.lua46
-rw-r--r--meta-gnome/recipes-gnome/devilspie/files/devilspie2.desktop5
2 files changed, 51 insertions, 0 deletions
diff --git a/meta-gnome/recipes-gnome/devilspie/files/default.lua b/meta-gnome/recipes-gnome/devilspie/files/default.lua
new file mode 100644
index 0000000000..22a17fe98e
--- /dev/null
+++ b/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
diff --git a/meta-gnome/recipes-gnome/devilspie/files/devilspie2.desktop b/meta-gnome/recipes-gnome/devilspie/files/devilspie2.desktop
new file mode 100644
index 0000000000..e34e881cd4
--- /dev/null
+++ b/meta-gnome/recipes-gnome/devilspie/files/devilspie2.desktop
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Type=Application
+Name=Devilspie2
+Exec=devilspie2 -f /etc/devilspie2
+