nix/modules/home-manager/scripts/common/bin/editscrot
2023-10-05 13:43:28 -05:00

3 lines
208 B
Bash
Executable file

#!/usr/bin/env sh
opener="$(command -v xdg-open 2>&1 >/dev/null && echo "xdg-open" || echo "open")"
exec nohup "$opener" "$NICE_HOME/img/scrots/$(ls -t "$NICE_HOME/img/scrots/" | head -n1)" >/dev/null 2>&1 &