3 # picom launcher that adapts to the environment
5 if [ -e /opt/instantos/potato ] || iconf -i potato; then
6 echo "no compositing for you, your pc is a potato"
12 if [ -e ~/.compton.conf ]; then
14 echo "removed old compton file"
17 mkdir -p ~/.config/picom
19 # remove the above comment to disable auto settings' >.config/picom/picom.conf
21 if ! grep -q 'hypervisor' /proc/cpuinfo; then
24 fade-out-step = 0.15' >>.config/picom/picom.conf
27 if iconf -i blur; then
30 tee -a .config/picom/picom.conf >/dev/null <<EOT
32 blur-background = true;
33 blur-background-frame = true;
34 blur-background-fixed = true;
37 blur-method = "dual_kawase";
39 blur-background-exclude = [ "class_g = 'slop'", "class_g = 'Peek'", "class_g = 'Rofi'", "class_g = 'kdeconnect.daemon'"]
47 if iconf -i vsync; then
48 echo "vsync=true" >> .config/picom/picom.conf
55 if ! [ -e .config/picom/picom.conf ] ||
56 grep -q 'instantos' .config/picom/picom.conf &&
57 ! grep 'picom' ~/.instantrc | grep '0[^a-zA-Z]*$'; then
61 if (! grep -q 'hypervisor' /proc/cpuinfo &&
62 grep -q 'instantos' .config/picom/picom.conf &&
63 iconf -i blur) || iconf -i experimentalpicom; then
64 echo "running picom with blur support"
65 picom --experimental-backends &