about summary refs log tree commit diff stats
path: root/hm/soispha/pkgs/scripts/small_functions/screen_shot
blob: ff0d3ee496c02d9ec52231b8a4dc4bfabc7f7fb9 (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.1" . %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