tX session holder - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 443f2c930ea38941f2abc330ad84ff8d839adc94
(DIR) parent db8c63abc8d5d18036bb7237de0205d4b8dbfc2b
(HTM) Author: z3bra <willy@mailoo.org>
Date: Fri, 17 Oct 2014 11:55:57 +0200
X session holder
Diffstat:
A xwait | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/xwait b/xwait
t@@ -0,0 +1,30 @@
+#!/bin/tcc -run
+
+/*
+ * use it to hold your X session.
+ * You can either compile it, or run it through tcc using it's special shebang,
+ * that's up to you, really.
+ *
+ * echo "exec xwait" >> ~/.xinitrc
+ *
+ */
+
+#include <unistd.h>
+#include <sys/wait.h>
+
+int
+main ( c, v, e )
+ int c;
+ char **v;
+ char **e;
+ {
+ for( ;; )
+ {
+ wait( NULL );
+ sleep( 1 );
+ }
+
+ return 0;
+ }
+
+/* vim: set ft=c: */