From 67ac36bdeeff2ba808710c830d598969e1e3acb7 Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 31 Jan 2023 14:18:58 +0100 Subject: up --- .local/bin/powercmd | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 .local/bin/powercmd (limited to '.local/bin') diff --git a/.local/bin/powercmd b/.local/bin/powercmd new file mode 100755 index 0000000..fadf6a0 --- /dev/null +++ b/.local/bin/powercmd @@ -0,0 +1,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 -- cgit v1.2.3