~tardypad/dotfiles

ref: 00c0c349a1b8960152233f11caa9ea1a40e395a3 dotfiles/files/scripts/shell/screenshot -rwxr-xr-x 194 bytes
00c0c349 — Damien Tardy-Panis Add presentation mode to mako to hide notifications 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
#!/bin/sh

REGION=$( slurp 2> /dev/null )

[ -z "${REGION}" ] && exit 1

FILE_PATH="${XDG_DESKTOP_DIR:-$HOME/Desktop}/screenshot_$(date +'%Y%m%d%H%M%S').png"

grim -g "${REGION}" "${FILE_PATH}"