Files
misc/bin/screenshot
2025-12-18 14:12:29 -08:00

13 lines
378 B
Bash
Executable File

#!/bin/sh
YEAR=$(date +%Y)
MONTH_DAY=$(date +%m-%d)
FILENAME=$(date +%R:%S)
mkdir -p ~/pictures/$YEAR/$MONTH_DAY
if [ $1 = 1 ]; then
import clipboard:
notify-send "Screenshot taken" "copied to clipboard" -i :
else
import -window root ~/pictures/$YEAR/$MONTH_DAY/"$FILENAME".png
notify-send "Screenshot taken" "saved to ~/pictures/$YEAR/$MONTH_DAY/$FILENAME.png" -i :
fi