about summary refs log tree commit diff stats
path: root/hm/soispha/pkgs/scripts/small_functions/screen_shot
blob: 9bda1f4a9ca89e1fe07f976823a78c9c6416ac25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#! /usr/bin/env dash

# shellcheck source=/dev/null
SHELL_LIBRARY_VERSION="1.6.4" . %SHELL_LIBRARY_PATH

date="$(date +%s)"
grim -g "$(slurp)" "$HOME/media/pictures/screenshots/$date.png" &&
    alacritty -e ll -command ":{{ set sortby atime; set reverse!; }}" "$HOME/media/pictures/screenshots/$date.png"

# vim: ft=sh