1
0
Fork 0
dotfiles/.local/libexec/dwm/togcompositor

12 lines
272 B
Plaintext
Raw Normal View History

#!/bin/sh
2024-03-14 09:24:02 +01:00
if [ "$(sv status picom | cut -d ':' -f 1)" = "run" ]; then
sv down picom
2024-02-03 18:34:14 +01:00
notify-send -h string:x-dunst-stack-tag:"togcom" \
"Compositor Off"
else
2024-03-14 09:24:02 +01:00
sv up picom
2024-02-03 18:34:14 +01:00
notify-send -h string:x-dunst-stack-tag:"togcom" \
"Compositor On"
fi