disable power-manager on PC
parent
1db0ab1fc4
commit
2f0a40febd
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue