1
0
Fork 0

update togcom script

This commit is contained in:
Luca Bilke 2024-03-14 09:24:02 +01:00
parent 231f2b37f8
commit 57057427b2

View file

@ -1,11 +1,11 @@
#!/bin/sh
if pidof picom; then
killall picom
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
setsid -f picom
sv up picom
notify-send -h string:x-dunst-stack-tag:"togcom" \
"Compositor On"
fi