about summary refs log blame commit diff stats
path: root/home-manager/packages/scripts/small_functions/screen_shot
blob: 73eb2ee472b21a9410be3c3c3a154a0413e4fec4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                    
 
                             
                                                   
 



                                                                                                                  
#! /usr/bin/env dash

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