From dc358b75bccb0de924a48e2c4c0377cef1b67fc6 Mon Sep 17 00:00:00 2001 From: paperbenni Date: Tue, 9 Jun 2020 22:04:24 +0200 Subject: [PATCH] ipicom --- autostart.sh | 11 +---------- programs/ipicom | 4 ++++ 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/autostart.sh b/autostart.sh index 7ba4f9b..158bb81 100755 --- a/autostart.sh +++ b/autostart.sh @@ -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 diff --git a/programs/ipicom b/programs/ipicom index bf4067f..00afbd2 100644 --- a/programs/ipicom +++ b/programs/ipicom @@ -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() { -- 2.11.0