dotfiles/files/.config/i3/bin/i3lock

14 lines
348 B
Text
Raw Normal View History

2016-09-04 13:58:13 +02:00
#!/bin/bash
WPDIR=~/Images/wallpapers/
WALLPAPER=$WPDIR/wallpaper_lock.png
if [ -x /usr/bin/gpg-connect-agent ] ; then
[ -f ~/.bash_sshagent ] && source ~/.bash_sshagent
echo "$SSH_AUTH_SOCK" | grep -q gpg && \
echo "RELOADAGENT" | gpg-connect-agent > /dev/null
echo -n "" | xclip -selection clipboard
fi
2016-09-04 13:58:13 +02:00
/usr/bin/i3lock -tefi "$WALLPAPER"