#!/bin/sh #---------------------------------------------------- # Author: Florian "Bluewind" Pritz # # Licensed under WTFPL v2 # (see COPYING for full license text) # #---------------------------------------------------- # managing script for locking the screen #---------------------------------------------------- lock () { # gajim-remote change_status away & # echo "command /away afk" | ssh mistral 'socat stdin unix-connect:.irssi/socket' xset dpms 2 2 2 # i3lock -n -t -i ~flo/backgrounds/lockscreen.png slock } unlock () { xset dpms 0 0 0 # gajim-remote change_status online & # echo "command /away" | ssh mistral 'socat stdin unix-connect:.irssi/socket' } #if pidof i3lock &> /dev/null; then exit 1; fi if pidof slock &> /dev/null; then exit 1; fi (lock && unlock) &