8 lines
263 B
Bash
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
|