14 lines
375 B
Bash
Executable File
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
|