dotfiles/dot_local/scripts/executable_screenshot.sh

9 lines
271 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
2020-06-15 08:54:40 +00:00
FILE="/home/michael/Screenshots/$(date +%Y-%m-%d-%H:%M:%S).png"
2020-04-09 04:18:20 +00:00
$SCREENSHOT $1 -o $FILE
# optional: copy to clipboard
XCLIP=/usr/bin/xclip
$XCLIP -selection clipboard -t image/png -i $FILE