small pixel drawing of a pufferfish dotfiles

bin/scr

1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh
#
# Take a screenshot

scr_dir=~/pix/screenshots

date=$(date +%F)
time=$(date +%I-%M-%S)
file=$scr_dir/$date/$date-$time.jpg

mkdir -p "$scr_dir/$date"
import -window root "$file"
cp -f "$file" "$scr_dir/current.jpg"