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
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue