export PAGER=less
export SUDO_ASKPASS=/usr/lib/ssh/ssh-askpass
-export NOTMUCH_CONFIG=/home/mart/.mutt/notmuch-config
+export NOTMUCH_CONFIG=~/.mutt/notmuch-config
export CLEAN_HOME=~/projects/clean-itasks
export PATH=$PATH:$CLEAN_HOME/lib/exe:$CLEAN_HOME/bin:~/.local/bin
alias ls='ls --color=auto'
alias grep='grep --color=auto'
-alias vi='vim'
+alias vi=vim
alias autoclean='sudo pacman -R $(pacman -Qtdq)'
set_prompt(){
# alternatively, you can use the cursor keys:
bindsym XF86MonBrightnessUp exec xbacklight -inc 5
bindsym XF86MonBrightnessDown exec xbacklight -dec 5
-bindsym XF86AudioMute exec amixer -c 1 set Master mute
+bindsym XF86AudioMute exec amixer -c 1 set Master toggle
bindsym XF86AudioLowerVolume exec amixer -c 1 set Master 5%-
bindsym XF86AudioRaiseVolume exec amixer -c 1 set Master 5%+
-#!/bin/bash
-[[ "$#" -eq 0 ]] && WINDOW=root || WINDOW="$(xdotool getwindowfocus -f)"
-URL="$(date +%F_%H-%M-%S).png"
-import -window "$WINDOW" -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 {}"
+#!/bin/sh -e
+[ "$#" -eq 1 ] && CROP="$(slop -t 0 -f "-crop %g")"
+URL="scr/$(date +%F_%H-%M-%S).png"
+import -window root $CROP png:- | \
+ ssh ygdrassil ssh martlubbers.net "cat \> public_html/$URL"
+echo "https://martlubbers.net/$URL" | xclip -f | xargs -I{} notify-send {}