diff options
author | Soispha <soispha@vhack.eu> | 2023-05-28 22:13:25 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-05-28 22:13:25 +0200 |
commit | df2e5904b9060d7b39f7ade123d1f5912dbeb06f (patch) | |
tree | 1107ea237ee28c221c76cf9e6cbd0bb1d9cc49d7 /home-manager/packages/scripts/small_functions/screen_shot | |
parent | Docs(hm/wms/river/init): Add a hint to simplify script (diff) | |
download | nixos-config-df2e5904b9060d7b39f7ade123d1f5912dbeb06f.tar.gz nixos-config-df2e5904b9060d7b39f7ade123d1f5912dbeb06f.zip |
Fix(hm/pkgs/scrs): Rework some of them
Diffstat (limited to '')
-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 |