Comment 5 for bug 474654

Revision history for this message
KIAaze (zohn-joidberg) wrote : Re: Desktop visible when screen is locked in Kubuntu

Also, here's a simple script to toggle compositing: toggleCompositing.sh
=============
#!/bin/bash
RESULT=`qdbus org.kde.kwin /KWin org.kde.KWin.compositingActive`

if [ "$RESULT" = "true" ]
then
  # turn off
  kwriteconfig --file kwinrc --group Compositing --key Enabled false
else
  # turn on
  kwriteconfig --file kwinrc --group Compositing --key Enabled true
fi

# Then restart kwin (in Alt+F2) with:
kwin --replace &
===============

Now, if somebody could tell me how to integrate that into the lock screen mechanism (turn off on lock, turn on on unlock), I'd be very happy. :D