summaryrefslogtreecommitdiffstats
path: root/screen-locker.sh
blob: 7184c479d7000347b7c2d5008bb2c5dccd6f8209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
#----------------------------------------------------
# Version:      0.1.0
# Author:       Florian "Bluewind" Pritz <f-p@gmx.at>
#
# Copyright (C) 2008-2009 Florian Pritz
#
# Licensed under GNU General Public License v3
#   (see COPYING for full license text)
#    
#----------------------------------------------------
# mange script for locking the screen
#----------------------------------------------------

lock () {
  gajim-remote change_status away &
  ssh mistral 'python ~/irssi.py 1'
  slock 
}

unlock () {
  gajim-remote change_status online &
  ssh mistral 'python ~/irssi.py 0'
}

(lock && unlock) &
(sleep 0.5 && swarp 0 0) &