summaryrefslogtreecommitdiffstats
path: root/screen-locker.sh
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2009-01-20 11:39:15 +0100
committerFlorian Pritz <f-p@gmx.at>2009-01-20 11:39:15 +0100
commit9e43bfa22a40bd70b764c66f453465a708d3b7ef (patch)
tree479c6eb6f768674b2c2f61fec1ce8496158b9c23 /screen-locker.sh
parent1b1859915c8a6d8ab0f8d1f3b4439eaef2d2a272 (diff)
downloadbin-9e43bfa22a40bd70b764c66f453465a708d3b7ef.tar.gz
bin-9e43bfa22a40bd70b764c66f453465a708d3b7ef.tar.xz
update
Diffstat (limited to 'screen-locker.sh')
-rwxr-xr-xscreen-locker.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/screen-locker.sh b/screen-locker.sh
index 68b587c..f14bd91 100755
--- a/screen-locker.sh
+++ b/screen-locker.sh
@@ -1,3 +1,12 @@
#!/bin/sh
-slock &
-(sleep 0.5 && swarp 0 0) & \ No newline at end of file
+lock () {
+ gajim-remote change_status away &
+ slock
+}
+
+unlock () {
+ gajim-remote change_status online &
+}
+
+(lock && unlock) &
+(sleep 0.5 && swarp 0 0) &