blob: 312c82b79e96ecc38943660ccb0d13b27f190d49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
# Set pidgin away.
if pgrep pidgin &> /dev/null; then
currentStatusMessage="$(purple-remote 'getstatusmessage')"
currentStatus="$(purple-remote 'getstatus')"
purple-remote 'setstatus?status=away&message=Away'
fi
i3lock -n -i $HOME/.wallpapers/lock.png --color=0e0e0e -u -m
if pgrep pidgin &> /dev/null; then
purple-remote 'setstatus?status='"$currentStatus"'&message='"$currentStatusMessage"
fi
|