## installs all instantOS tools ##
#############################################
-cd
+cd || echo "ERROR: could not go to HOME"
echo "installing instantOS tools"
# laptop specific stuff
-if acpi | grep -q '[0-9]%' &>/dev/null; then
+if acpi | grep -q '.' &>/dev/null; then
# config file to indicate being a laptop
echo "device appears to be a laptop"
- iconf islaptop 1
+ iconf -i islaptop 1
fi
# needed for nm-applet start
if lspci | grep -Eiq '(wifi|wireless)'; then
echo "device has wifi capabilities"
- iconf haswifi 1
+ iconf -i haswifi 1
+ iconf -i wifiapplet 1
fi
-cd
-mkdir -p instantos/notifications &>/dev/null
+# needed to disable bluetooth service
+if lsusb | grep -iq 'bluetooth'; then
+ echo "device has bluetooth"
+ iconf -i hasbluetooth 1
+fi
+
+# change some behaviour like light for setting brightness
+if iconf -r hasnvidia
+then
+ iconf -i hasnvidia 1
+ iconf -i uselight 1
+fi
+
+instantmouse gen
-cd instantos
-rm -rf wallpapers
-mkdir wallpapers
+mkdir ~/instantos
+mkdir -p ~/.config/instantos
-# set instantwm as default for lightdm
-echo '[Desktop]' >.dmrc
-echo 'Session=instantwm' >>.dmrc
+iconf -i userinstall 1