summaryrefslogtreecommitdiffstats
path: root/screen-locker.sh
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-10-03 22:03:44 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-10-03 22:03:44 +0200
commitdc0ae2b4a8d4322a2f3c6f8985ca365698cf556e (patch)
tree3ddb4b133e1d882a6152de42623b913bd9df793c /screen-locker.sh
parente09ad787000a03db3f1d44d2c989e309c26aabf5 (diff)
downloadbin-dc0ae2b4a8d4322a2f3c6f8985ca365698cf556e.tar.gz
bin-dc0ae2b4a8d4322a2f3c6f8985ca365698cf556e.tar.xz
move irssi afk code to screen-locker.sh
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'screen-locker.sh')
-rwxr-xr-xscreen-locker.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/screen-locker.sh b/screen-locker.sh
index b5ec254..d0eb820 100755
--- a/screen-locker.sh
+++ b/screen-locker.sh
@@ -1,19 +1,17 @@
#!/bin/sh
#----------------------------------------------------
-# Version: 0.1.1
# Author: Florian "Bluewind" Pritz <flo@xssn.at>
#
# Licensed under WTFPL v2
# (see COPYING for full license text)
#
#----------------------------------------------------
-# mange script for locking the screen
+# managing script for locking the screen
#----------------------------------------------------
lock () {
gajim-remote change_status away &
- ssh mistral 'python2 ~/bin/irssi_socket_control.py 1'
-# (sleep 0.5 && swarp 0 0) &
+ echo "command /away afk" | ssh mistral 'socat stdin unix-connect:.irssi/socket'
xset dpms 5 5 5
slock
}
@@ -21,7 +19,7 @@ lock () {
unlock () {
xset dpms 0 0 0
gajim-remote change_status online &
- ssh mistral 'python2 ~/bin/irssi_socket_control.py 0'
+ echo "command /away" | ssh mistral 'socat stdin unix-connect:.irssi/socket'
}
if pidof slock &> /dev/null; then exit 1; fi