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 #!/bin/sh
if pidof picom; then if [ "$(sv status picom | cut -d ':' -f 1)" = "run" ]; then
killall picom sv down picom
notify-send -h string:x-dunst-stack-tag:"togcom" \ notify-send -h string:x-dunst-stack-tag:"togcom" \
"Compositor Off" "Compositor Off"
else else
setsid -f picom sv up picom
notify-send -h string:x-dunst-stack-tag:"togcom" \ notify-send -h string:x-dunst-stack-tag:"togcom" \
"Compositor On" "Compositor On"
fi fi