#!/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() { if [ -e ~/.compton.conf ]; then rm ~/.compton.conf echo "removed old compton file" fi mkdir -p ~/.config/picom echo '# instantos # remove the above comment to disable auto settings' >.config/picom/picom.conf if ! grep -q 'hypervisor' /proc/cpuinfo; then echo 'fading = true fade-in-step = 0.15 fade-out-step = 0.15' >>.config/picom/picom.conf echo "not a vm" if iconf -i blur; then # possibility 3: tee -a .config/picom/picom.conf >/dev/null <