Hey,

Hope this doesn't break any of the core concepts. I've started small.
Patch to xssstate allows for passing parameters to a command, e.g.:

   xsidle.sh ls -l /usr

Phil
From dc065eaa6242cefca8a0c4696b649bb4ffdfdaf5 Mon Sep 17 00:00:00 2001
From: Phil Pirozhkov <[email protected]>
Date: Sat, 11 Oct 2014 11:42:47 +0400
Subject: [PATCH] Pass parameters over to cmd, e.g.:

    xsidle.sh ls -l /usr
---
 xsidle.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xsidle.sh b/xsidle.sh
index 35278bc..cc3b2a4 100755
--- a/xsidle.sh
+++ b/xsidle.sh
@@ -8,7 +8,7 @@ then
 	printf "usage: %s cmd\n" "$(basename $0)" 2>&1
 	exit 1
 fi
-cmd="$1"
+cmd="$@"
 
 while true
 do
-- 
2.1.1

Reply via email to