OSDN Git Service

ipicom
authorpaperbenni <paperbenni@gmail.com>
Tue, 9 Jun 2020 20:04:24 +0000 (22:04 +0200)
committerpaperbenni <paperbenni@gmail.com>
Tue, 9 Jun 2020 20:04:24 +0000 (22:04 +0200)
autostart.sh
programs/ipicom

index 7ba4f9b..158bb81 100755 (executable)
@@ -70,16 +70,7 @@ else
        echo "not a laptop"
 fi
 
-if ! [ -e /opt/instantos/potato ]; then
-       # optional blur
-       if iconf -i blur; then
-               picom --experimental-backends &
-       else
-               picom &
-       fi
-else
-       echo "your computer is a potato, no compositing for you"
-fi
+ipicom
 
 if ! iconf -i notheming; then
        instantthemes a
index bf4067f..00afbd2 100644 (file)
@@ -1,6 +1,10 @@
 #!/bin/bash
 
 # picom launcher that adapts to the environment
+if [ -e /opt/instantos/potato ] || iconf -i potato; then
+    echo "no compositing for you, your pc is a potato"
+    exit
+fi
 
 genconfig() {