dotfiles

Personal dotfiles.
Log | Files | Refs | LICENSE

commit 900a5a1d9c6e37e8d8faec33a30105657af14de1
parent 89d5aa75d375cf7e0fcef0fe1b0cec30b51e1fc2
Author: Arne Swanson <nownpl@0111.click>
Date:   Wed, 15 Aug 2018 23:30:33 -0300

moved shot to own repo

Diffstat:
scripts/shot | 37-------------------------------------
1 file changed, 0 insertions(+), 37 deletions(-)

diff --git a/scripts/shot b/scripts/shot @@ -1,37 +0,0 @@ -#!/bin/bash -args=`getopt w $*` -eval set -- "${args}" - -directory="${HOME}/files/shot" -flag_window=0 - -while true; do - case "$1" in - -w) - flag_window=1 - shift - ;; - --) - shift - break - ;; - *) - exit 3 - ;; - esac -done - -if [ -z $1 ]; then - filename="$(date +'screen_%T_%F')" -else - filename="${$1}" -fi - -if [ ${flag_window} -gt 0 ]; then - import -window root "${directory}/${filename}.png" -else - import "${directory}/${filename}.png" -fi - -echo "${directory}/${filename}.png" | pb -f | tr -d '\n' | xc -alert "Saved screenshot to ${directory}/${filename}.png and uploaded to $(xp)"