update togcom script
This commit is contained in:
parent
231f2b37f8
commit
57057427b2
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue