aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/xssstate/README64
1 files changed, 1 insertions, 63 deletions
diff --git a/system/xssstate/README b/system/xssstate/README
index 0c4b6d276e..290efb5b65 100644
--- a/system/xssstate/README
+++ b/system/xssstate/README
@@ -1,4 +1,4 @@
-xssstate (utility from suckless.org)
+xssstate
------------------------------------
This is the xssstate utility from suckless.org.
@@ -25,65 +25,3 @@ Turn on the screensaver after 60 seconds inactivity:
Force the screensaver to be active:
% xset s blank
-
-For more options, see xset(1).
-
-Why
----
-
-I created this package, because I needed this one utility to control
-my screensaver and lock my screen with a simple tool.
-
-The same utility is bundled in the suckless-tools package on
-slackbuilds.org. If you need the other utilities in that package,
-you can use that. B. Watson did a nice job including these
-into one package.
-
-I did not have use for the other utilities in that package, and
-have created this package.
-
-Example usage
--------------
-
-In the section below, an xss_idle.sh script is given. This script
-is an example on how to use this for a background service that
-will control your screensaver. This can be used to invoke xlock(1)
-using the following command.
-
- % xss_idle.sh xlock &
-
-This can be usefull in your $HOME/.xinitrc file.
-
-You can also use slock, or any other utility that can lock the
-screen.
-
-Example script: xss_idle.sh
----------------------------
-
-#!/bin/sh
-#
-# Use xset s $time to control the timeout when this will run.
-#
-
-if [ $# -lt 1 ];
-then
- printf "usage: %s cmd\n" "$(basename $0)" 2>&1
- exit 1
-fi
-cmd="$@"
-
-while true
-do
- if [ $(xssstate -s) != "disabled" ];
- then
- tosleep=$(($(xssstate -t) / 1000))
- if [ $tosleep -le 0 ];
- then
- $cmd
- else
- sleep $tosleep
- fi
- else
- sleep 10
- fi
-done