dotfiles/dot_local/scripts/executable_screenshot.sh

9 lines
263 B
Bash
Raw Normal View History

2020-04-09 04:18:20 +00:00
#!/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