From 7686d0475e28df14892396668574a2c5016960f5 Mon Sep 17 00:00:00 2001 From: Alfredo Palhares Date: Sat, 2 Mar 2013 21:53:49 +0000 Subject: [PATCH] Xephyr script to help test the configs. --- utils/xephyr.sh | 73 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100755 utils/xephyr.sh diff --git a/utils/xephyr.sh b/utils/xephyr.sh new file mode 100755 index 0000000..837d844 --- /dev/null +++ b/utils/xephyr.sh @@ -0,0 +1,73 @@ +# If rc.lua.new is missing, make a default one. +rc_lua=$PWD/example.rc.lua +test -f $rc_lua || /bin/cp /etc/xdg/awesome/rc.lua $rc_lua + +# Just in case we're not running from /usr/bin +awesome=`which awesome` +xephyr=`which Xephyr` +pidof=`which pidof` + +test -x $awesome || { echo "Awesome executable not found. Please install Awesome"; exit 1; } +test -x $xephyr || { echo "Xephyr executable not found. Please install Xephyr"; exit 1; } + +function usage() +{ + cat <