From 9b4ab05e359bdf0994cb09ae063f414e8336fdcd Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Mon, 20 Jun 2016 16:10:48 +0200 Subject: [PATCH] update screenshot and i3 --- shell/.bashrc | 2 +- x/.config/i3/config | 4 ++-- x/.local/bin/scr | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/shell/.bashrc b/shell/.bashrc index a75e47e..f313733 100644 --- a/shell/.bashrc +++ b/shell/.bashrc @@ -14,7 +14,7 @@ export TERM=screen 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 diff --git a/x/.config/i3/config b/x/.config/i3/config index 10af625..9fd78e6 100644 --- a/x/.config/i3/config +++ b/x/.config/i3/config @@ -17,8 +17,8 @@ set $fontsize 12 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 diff --git a/x/.local/bin/scr b/x/.local/bin/scr index 85bca85..184b5d8 100755 --- a/x/.local/bin/scr +++ b/x/.local/bin/scr @@ -1,9 +1,9 @@ #!/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 {} -- 2.20.1