summaryrefslogtreecommitdiff
path: root/.local/bin/screenshot
blob: 3f24f7006193ee3f7ab91c25bc2d95bd67feb3f4 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
# Take screenshot with interactive area selection
# Saves screenshot with timestamp in directory named after the date

time=$(date +%b-%d-%Y-%T.%N)
day=$(date +%b-%d-%Y)
[ -d ~/pictures/screenshots/$day ] || mkdir ~/pictures/screenshots/$day
maim -s > ~/pictures/screenshots/$day/$time.png && notify-send "Screenshot Taken"