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

12 lines
272 B
Bash
Executable File

#!/bin/sh
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
sv up picom
notify-send -h string:x-dunst-stack-tag:"togcom" \
"Compositor On"
fi