summaryrefslogtreecommitdiffstats
path: root/setup.sh
blob: 131c4d2d161f9c96d7c179c6e414968690c33ba7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

if [ ! -f py3status/py3status.py ]; then
	echo "py3status/py3status.py not found, run me from the cloned directory"
	exit 1
fi

echo -n "setting up symlink... "
if [ ! -L /usr/bin/py3status ]; then
	ln -s $(pwd)/py3status/py3status.py /usr/bin/py3status || exit 2
fi
echo "ok"

echo -n "setting up permissions... "
chmod +x py3status/py3status.py || exit 3
echo "ok"

echo "setup done, enjoy !"