dotfiles/scripts/sceenshot.sh
2020-10-16 22:55:26 +03:00

9 lines
254 B
Bash

#!/bin/sh
fileDate=`date +%Y-%m-%d-%H-%M-%S`
machineName=`hostname`
fileName=".png"
FILENAME=$fileDate"-"$machineName$fileName
SHORT=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 7 | head -n 1)
FILENAMESHORT=$fileDate$fileName
import $FILENAMESHORT