diff options
Diffstat (limited to 'home-manager/packages/scripts/small_functions/screen_shot')
-rwxr-xr-x | home-manager/packages/scripts/small_functions/screen_shot | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/home-manager/packages/scripts/small_functions/screen_shot b/home-manager/packages/scripts/small_functions/screen_shot index d0cbeb5c..815fd4fe 100755 --- a/home-manager/packages/scripts/small_functions/screen_shot +++ b/home-manager/packages/scripts/small_functions/screen_shot @@ -3,5 +3,8 @@ # shellcheck source=/dev/null SHELL_LIBRARY_VERSION="1.1.3" . %SHELL_LIBRARY_PATH -grim -g "$(slurp)" ~/media/pictures/screenshots/"$(date +%s)".png && - alacritty -e llp -command ":{{ set sortby atime; set reverse!; }}" ~/media/pictures/screenshots +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 |