summaryrefslogtreecommitdiff
path: root/contrib/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/scripts')
-rw-r--r--contrib/scripts/StartOzServer.oz2
-rwxr-xr-xcontrib/scripts/dir2org.zsh2
-rw-r--r--contrib/scripts/ditaa.jarbin0 -> 186095 bytes
-rwxr-xr-xcontrib/scripts/org2hpda2
-rw-r--r--contrib/scripts/staticmathjax/application.ini2
-rw-r--r--contrib/scripts/x11idle.c28
6 files changed, 33 insertions, 3 deletions
diff --git a/contrib/scripts/StartOzServer.oz b/contrib/scripts/StartOzServer.oz
index db12dec..df3ebe6 100644
--- a/contrib/scripts/StartOzServer.oz
+++ b/contrib/scripts/StartOzServer.oz
@@ -1,5 +1,5 @@
%%% *************************************************************
-%%% Copyright (C) 2009-2012 Torsten Anders (www.torsten-anders.de)
+%%% Copyright (C) 2009-2013 Torsten Anders (www.torsten-anders.de)
%%% This program is free software; you can redistribute it and/or
%%% modify it under the terms of the GNU General Public License
%%% as published by the Free Software Foundation; either version 2
diff --git a/contrib/scripts/dir2org.zsh b/contrib/scripts/dir2org.zsh
index 1ea8be4..f91ff17 100755
--- a/contrib/scripts/dir2org.zsh
+++ b/contrib/scripts/dir2org.zsh
@@ -1,3 +1,5 @@
+#!/usr/bin/env zsh
+
# desc:
#
# Output an org compatible structure representing the filesystem from
diff --git a/contrib/scripts/ditaa.jar b/contrib/scripts/ditaa.jar
new file mode 100644
index 0000000..5894de4
--- /dev/null
+++ b/contrib/scripts/ditaa.jar
Binary files differ
diff --git a/contrib/scripts/org2hpda b/contrib/scripts/org2hpda
index de0b573..07f29d9 100755
--- a/contrib/scripts/org2hpda
+++ b/contrib/scripts/org2hpda
@@ -1,5 +1,5 @@
# org2hpda - a small utility to generate hipster pda style printouts from org mode
-# Copyright (C) 2007-2012 Christian Egli
+# Copyright (C) 2007-2013 Christian Egli
#
# Version: 0.6
#
diff --git a/contrib/scripts/staticmathjax/application.ini b/contrib/scripts/staticmathjax/application.ini
index d7957b0..522376d 100644
--- a/contrib/scripts/staticmathjax/application.ini
+++ b/contrib/scripts/staticmathjax/application.ini
@@ -3,7 +3,7 @@ Vendor=Jan Boecker
Name=StaticMathJax
Version=0.2
BuildID=2
-Copyright=Copyright (c) 2010 Jan Boecker
+Copyright=Copyright (c) 2010, 2013 Jan Boecker
ID=xulapp@jboecker.de
[Gecko]
diff --git a/contrib/scripts/x11idle.c b/contrib/scripts/x11idle.c
new file mode 100644
index 0000000..22cefe1
--- /dev/null
+++ b/contrib/scripts/x11idle.c
@@ -0,0 +1,28 @@
+#include <X11/extensions/scrnsaver.h>
+#include <stdio.h>
+
+/* Based on code from
+ * http://coderrr.wordpress.com/2008/04/20/getting-idle-time-in-unix/
+ *
+ * compile with 'gcc -l Xss x11idle.c -o x11idle' and copy x11idle into your
+ * path
+ */
+main() {
+ XScreenSaverInfo *info = XScreenSaverAllocInfo();
+ //open the display specified by the DISPLAY environment variable
+ Display *display = XOpenDisplay(0);
+
+ //display could be null if there is no X server running
+ if (info == NULL || display == NULL) {
+ return -1;
+ }
+
+ //X11 is running, try to retrieve info
+ if (XScreenSaverQueryInfo(display, DefaultRootWindow(display), info) == 0) {
+ return -1;
+ }
+
+ //info was retrieved successfully, print idle time
+ printf("%lu\n", info->idle);
+ return 0;
+}