export BROWSER=firefox
export PAGER=less
-export SUDO_ASKPASS=/usr/lib/ssh/ssh-askpass
+export SUDO_ASKPASS=/usr/bin/ssh-askpass
export NOTMUCH_CONFIG=/home/mart/.mutt/notmuch-config
export CLEAN_HOME=~/projects/clean
exec xautolock -locker 'echo RELOADAGENT | gpg-connect-agent; i3lock'
# set a background
exec ~/.local/bin/bg
-# set the network switcher
-exec netctltray
+# start steam
+exec steam
# Toggle music playback
bindsym Pause exec mpc toggle
#!/bin/bash
-[[ "$#" -eq 0 ]] && WINDOW=root || WINDOW="$(xdotool getwindowfocus -f)"
+set -e
+[[ "$#" -eq 1 ]] && CROP="$(slop -t 0 f '-crop %g')"
URL="$(date +%F_%H-%M-%S).png"
-import -window "$WINDOW" -quality 90 png:- | curl -s\
+import -window root $CROP -quality 90 png:- | curl -s\
-u "ftp@martlubbers.net:$(pass ftp.martlubbers.net/ftp@martlubbers.net)"\
-T- "ftp://martlubbers.net/public_html/scr/$URL"
-echo "http://martlubbers.net/scr/$URL" | pee \
- "xclip -selection clipboard" "xclip"\
- "xargs -I{} notify-send {}"
+echo "https://martlubbers.net/scr/$URL" |\
+ xclip -f -sel c | xclip -f | xargs -I{} notify-send {}