dotfiles/dot_local/scripts/executable_screenshot.sh

8 lines
271 B
Bash

#!/bin/bash
SCREENSHOT=$HOME/.cargo/bin/leanshot
# choose some file to save it to
FILE="/home/michael/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