2018-06-21 13:42:12 -05:00
|
|
|
#!/bin/sh
|
2018-11-22 02:39:53 -06:00
|
|
|
name="$(basename "$0" .sh)"
|
|
|
|
if command -v neofetch > /dev/null 2>&1; then
|
2018-11-16 20:51:57 -06:00
|
|
|
neofetch
|
2018-12-05 00:03:55 -06:00
|
|
|
sleep 3
|
2018-11-22 02:39:53 -06:00
|
|
|
scrot "$HOME/Pictures/Screenshots/neofetch-$(date +%s).png"
|
2018-06-21 13:42:12 -05:00
|
|
|
else
|
2018-11-22 02:39:53 -06:00
|
|
|
# shellcheck disable=1117
|
|
|
|
printf "%s: Neofetch is not installed; aborting\n" \
|
|
|
|
"$name"
|
2018-06-21 13:42:12 -05:00
|
|
|
fi
|