configs/i3/scripts/toggle_compositing.sh

13 lines
272 B
Bash
Raw Normal View History

2017-03-19 21:59:32 +01:00
#!/bin/sh
PIDFILE="/tmp/.compositing_mgr_$DISPLAY.pid"
if [ -e "$PIDFILE" ]; then
kill `cat "$PIDFILE"`
rm "$PIDFILE"
else
#compton -c -f -C -t-5 -l-5 -r4.2 -o.55 -I0.08 -O0.08 -D16 &
compton -cCzf -O 0.035 --backend glx --blur-background &
echo $! > "$PIDFILE"
fi