#!/bin/sh # Take screenshot of current window # 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 -p ~/pictures/screenshots/$day maim > ~/pictures/screenshots/$day/$time.png && notify-send "Screenshot Taken"