#!/bin/sh #---------------------------------------------------- # Version: 0.1.1 # Author: Florian "Bluewind" Pritz # # Licensed under WTFPL v2 # (see COPYING for full license text) # #---------------------------------------------------- # mange 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) & xset dpms 5 5 5 slock } unlock () { xset dpms 0 0 0 gajim-remote change_status online & ssh mistral 'python2 ~/bin/irssi_socket_control.py 0' } if pidof slock &> /dev/null; then exit 1; fi (lock && unlock) &