#!/bin/bash # Toggle picom with --backend glx --vsync if pgrep -x "picom" > /dev/null; then # Picom is running → kill it pkill -x picom notify-send "Picom" "Compositor disabled" 2>/dev/null || true else # Picom is not running → start it picom --backend glx --vsync & notify-send "Picom" "Compositor enabled (GLX + VSync)" 2>/dev/null || true fi