dotfiles/scripts/screenshot.sh

3 lines
198 B
Bash
Raw Normal View History

2024-05-24 00:20:58 +02:00
#!/bin/sh
NUM=$(echo $RANDOM) maim -s $HOME/Pictures/screenshots/$(date +%Y%m%d_%H%M)$NUM.png ; cat $HOME/Pictures/screenshots/$(date +%Y%m%d_%H%M)$NUM.png | xclip -selection clipboard -t image/png