6 lines
220 B
Bash
Executable file
6 lines
220 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
SCROT_DIR="$NICE_HOME/img/scrots"
|
|
mkdir -p "$SCROT_DIR/"
|
|
FILENAME="$SCROT_DIR/screenshot_%Y-%m-%d_%H-%M-%S_\$wx\$h.png"
|
|
scrot "$@" "${FILENAME}" >/dev/null && echo "Saved screenshot to: ${FILENAME}"
|