#!/bin/bash pid=$(pgrep -x picom) if [ -z "$pid" ]; then picom -b else kill $pid fi