#!/bin/sh

if [ "$(sv status picom | cut -d ':' -f 1)" = "run" ]; then
    sv down picom
    notify-send -h string:x-dunst-stack-tag:"togcom" \
        "Compositor Off"
else
    sv up picom
    notify-send -h string:x-dunst-stack-tag:"togcom" \
        "Compositor On"
fi