Files
misc/bin/screenshot
2025-12-28 13:13:00 -08:00

11 lines
330 B
Bash
Executable File

#!/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