scripts

various script and utils
git clone git://z3bra.org/scripts
Log | Files | Refs

commit 443f2c930ea38941f2abc330ad84ff8d839adc94
parent db8c63abc8d5d18036bb7237de0205d4b8dbfc2b
Author: z3bra <willy@mailoo.org>
Date:   Fri Oct 17 11:55:57 +0200

X session holder

Diffstat:
xwait | 30++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+), 0 deletions(-)
diff --git a/xwait b/xwait @@ -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: */