OSDN Git Service

implement iconf
authorpaperbenni <paperbenni@gmail.com>
Thu, 5 Mar 2020 16:57:15 +0000 (17:57 +0100)
committerpaperbenni <paperbenni@gmail.com>
Thu, 5 Mar 2020 16:57:15 +0000 (17:57 +0100)
autostart.sh
rootinstall.sh
userinstall.sh

index 0fdc031..cbea8d9 100755 (executable)
@@ -32,7 +32,7 @@ xdotool key 'super+c' && sleep 0.1
 xdotool key 'super+2' && sleep 0.1
 xdotool key 'super+1' && sleep 0.1
 
-if acpi | grep -q '[0-9]%' &>/dev/null; then
+if iconf islaptop; then
        export ISLAPTOP="true"
        echo "laptop detected"
 else
index c405523..c059d16 100755 (executable)
@@ -48,7 +48,7 @@ addenv() {
 
 addenv -f "QT_QPA_PLATFORMTHEME" "qt5ct"
 addenv -f "PAGER" "less"
-command -v nvim &>/dev/null && addenv -f "EDITOR" "$(which nvim)"
+addenv -f "EDITOR" "$(which nvim)"
 
 # needed for instantLOCK
 if grep -q 'nobody' </etc/groups || grep -q 'nobody' </etc/group; then
index 9fb145b..1b87d83 100755 (executable)
@@ -11,13 +11,13 @@ 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"
-    touch .cache/islaptop
+    iconf islaptop 1
 fi
 
 # needed for nm-applet start
 if lspci | grep -Eiq '(wifi|wireless)'; then
     echo "device has wifi capabilities"
-    touch .cache/haswifi
+    iconf haswifi 1
 fi
 
 cd