# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
-exec dropbox start
-exec xautolock -time 15 -locker 'lock'
-#exec while [ 1 ]; do offlineimap -c /home/mart/.mutt/offlineimaprc; done
-exec /home/mart/.software/xflux -l 51.8125626 -g 5.8372264
-exec xcompmgr
-exec feh --no-fehbg --bg-scale '/usr/share/slim/themes/default/background.jpg'
+exec xautolock -time 15 -locker 'bash -c "i3lock -i <(import -window root - | convert - -blur 10x2 png:-)"'
+exec xrdb ~/.Xresources
set $mod Mod4
bindsym XF86AudioPrev exec mpc prev >> /dev/null
bindsym XF86AudioNext exec mpc next >> /dev/null
-bindsym Print exec scrot
+#bindsym Print exec scrot
# volume controls
bindsym XF86AudioRaiseVolume exec amixer set Master 5+ >> /dev/null
# 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