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

# shellcheck source=/dev/null
SHELL_LIBRARY_VERSION="1.7.0" . %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