OSDN Git Service

bugfixes and bluetooth detection
authorpaperbenni <paperbenni@gmail.com>
Sun, 15 Mar 2020 10:37:00 +0000 (11:37 +0100)
committerpaperbenni <paperbenni@gmail.com>
Sun, 15 Mar 2020 10:37:00 +0000 (11:37 +0100)
autostart.sh
userinstall.sh

index bba7cf7..da1b0cc 100755 (executable)
@@ -143,9 +143,10 @@ fi
 
 # laptop specific background jobs
 if [ -n "$ISLAPTOP" ]; then
+echo "libinput gestures"
        command -v libinput-gestures \
                &>/dev/null &&
-               libinput-gestures
+               libinput-gestures &
 fi
 
 source /usr/bin/instantstatus &
index 1b87d83..0e2a578 100755 (executable)
@@ -11,22 +11,17 @@ echo "installing instantOS tools"
 if acpi | grep -q '[0-9]%' &>/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
 fi
 
-cd
-mkdir -p instantos/notifications &>/dev/null
-
-cd instantos
-rm -rf wallpapers
-mkdir wallpapers
-
-# set instantwm as default for lightdm
-echo '[Desktop]' >.dmrc
-echo 'Session=instantwm' >>.dmrc
+# needed to disable bluetooth service
+if lsusb | grep -iq 'bluetooth'; then
+    echo "device has bluetooth"
+    iconf -i hasbluetooth 1
+fi