# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
-exec xautolock -time 15 -locker 'i3lock -i <(import -window root - | convert - -blur 10x2 png:-)'
+exec xautolock -time 15 -locker 'bash -c "i3lock -i <(import -window root - | convert - -blur 10x2 png:-)"'
exec xrdb ~/.Xresources
set $mod Mod4
# start dmenu (a program launcher)
bindsym $mod+e exec dmenu_run
+
+# place and update the calendar background
bindsym $mod+Shift+E exec convert -background black -fill white -size 1600x900 -font /usr/share/fonts/truetype/unifont/unifont.ttf label:"$(gcalcli --nc calw)" png:- | display -window root
+# lock the machine
+bindsym $mod+l exec xautolock -locknow
+
# change focus
bindsym $mod+h focus left
bindsym $mod+t focus down
set my_hdr="X-PGP-Key: http://www.martlubbers.net/mart@martlubbers.net.asc"
# Receiving and sending email
-set my_msmtp_pass=`gpg -d ~/passwd.gpg | grep -i mail | awk '{print $3}'; echo $?`
+set my_msmtp_pass=`gpg -d ~/passwd.gpg | grep -i mail | awk '{print $3}'`
set sendmail="/usr/local/bin/msmtp -C /home/mart/.mutt/msmtp --password=$my_msmtp_pass -f mart@martlubbers.net -a net"
# Bindings index