dotfiles/dot_local/scripts/executable_screenshot.sh
2020-04-08 23:18:20 -05:00

8 lines
263 B
Bash

#!/bin/bash
SCREENSHOT=$HOME/.cargo/bin/leanshot
# choose some file to save it to
FILE="$HOME/Screenshots/$(date +%Y-%m-%d-%H:%M:%S).png"
$SCREENSHOT $1 -o $FILE
# optional: copy to clipboard
XCLIP=/usr/bin/xclip
$XCLIP -selection clipboard -t image/png -i $FILE