disable power-manager on PC

master
Daniel Napora 2022-11-18 23:27:26 +01:00
parent 1db0ab1fc4
commit 2f0a40febd
1 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#!/bin/bash
# Firstboot script
# Copy i18n files to ~ if available
# Check if Laptop|Notebook, otherwise disable power-manager
# Run only once invoked from openbox autostart
LNG=${LANG:0:2}
FILE="$HOME/.config/mabox/.lang"
@ -12,7 +13,14 @@ if [ ! -f "$FILE" ]; then
fi
echo "selenized-black" > $HOME/.theme_history
# Power manager and tint2 native battery indicator only needed on Laptop/Netbook
TYPE=$(cat /sys/class/dmi/id/chassis_type)
case "$TYPE" in
8|9|10|14):;;
*)
echo "Hidden=true" >> "$HOME"/.config/autostart/xfce4-power-manager.desktop
;;
esac
touch $HOME/.config/mabox/.lang
fi