summarylogtreecommitdiffstats
path: root/nxt.sh
blob: 0ba94544b67cb161d2534c6ce847f43e080ae277 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

if [ active == $(systemctl is-active nxt) ]; then
	exec xdg-open http://localhost:7876/
fi

MSG="Service isn't active. Try starting NXT with 'systemctl start nxt'"

if hash notify-send &>/dev/null; then
	exec notify-send -u critical "NXT" "$MSG"
else
	echo "NXT" "$MSG"
fi