Files
misc/bin/screenshot
2025-11-25 00:00:46 -08:00

13 lines
381 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