commit bb7a7f9d3646c9e71ed5e063f0d68ec301a92ba2
parent d626ddd002d8ecd63795f565006fb3dce7d11e97
Author: jacob <jacobdoeslinux@protonmail.com>
Date: Wed, 26 Feb 2020 23:55:11 -0800
test for power_supply, if so platform=desktop
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/profile/.profile b/profile/.profile
@@ -10,7 +10,7 @@ export PAGER='less'
export LOCKER='slock'
# set platform variable
-if [ "$( hostname )" = 'nzxt' ]; then
+if [ -d '/sys/class/power_supply' ]; then
export PLATFORM='desktop'
else
export PLATFORM='laptop'