summaryrefslogtreecommitdiffstats
path: root/.local/bin/powercmd
blob: fadf6a09d5b6dc24ee49f0af26fd2e2d2086ab3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

# [ -z "$1" ] && echo "no arg" && exit 1

os="$(uname)"

if [ $os -eq "Linux" ]; then
	grep "Artix" /etc/issue >/dev/null 2>&1 && os=1 || os=2
elif [ $os -eq "FreeBSD" ]; then
else
	echo "unknown OS"
	exit 1
fi

# 1: Artix
# 2: Pop OS
# 3: FreeBSD

case $os in
	1) icon="" ;;
	2) icon="" ;;
	3) icon="" ;;
esac