blob: 394e02cec506799002eccfb2fc1d796ab41ab17c (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
FILENAME=$(date +%m-%d-%Y_%R:%S)
mkdir -p ~/pictures/screenshots
if [ $1 = 1 ]; then
import clipboard:
notify-send "Screenshot taken" "copied to clipboard" -i :
else
import -window root ~/pictures/screenshots/"$FILENAME".png
notify-send "Screenshot taken" "saved to ~/pictures/screenshots/$FILENAME.png" -i :
fi
|