summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-09-22 23:20:05 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2015-09-22 23:20:05 (GMT)
commit784e818dcddd9754b183a02dd5b3c3ea367e15ea (patch)
tree44b35ee3c2c348fc7aaef627f3e55252cb5ac0e9
parent3d403c230e1b9cb6b99d9603106ae1dce2c989d2 (diff)
added devilspie config
-rw-r--r--contrib/devilspie2.lua10
-rw-r--r--src/klokdisplay.c1
2 files changed, 10 insertions, 1 deletions
diff --git a/contrib/devilspie2.lua b/contrib/devilspie2.lua
new file mode 100644
index 0000000..71afe8d
--- /dev/null
+++ b/contrib/devilspie2.lua
@@ -0,0 +1,10 @@
+function string.starts(String,Start)
+ return string.sub(String,1,string.len(Start))==Start
+end
+
+if string.starts(get_window_name(), "ImageMagick: ") then
+ undecorate_window()
+ x = math.random(0, 700)
+ y = math.random(0, 500)
+ set_window_position(x, y)
+end
diff --git a/src/klokdisplay.c b/src/klokdisplay.c
index ec6025c..231352e 100644
--- a/src/klokdisplay.c
+++ b/src/klokdisplay.c
@@ -19,7 +19,6 @@
* along with klokdisplay. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdio.h>
#include <unistd.h>
#include <wand/MagickWand.h>