Files
scripts/vsyncToggle.sh
2026-09-19 21:23:27 -04:00

14 lines
375 B
Bash
Executable File

#!/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