# Do stuff before locking...
if [ "$COMPOSITING" = "true" ]
then
kwriteconfig --file kwinrc --group Compositing --key Enabled false
kwin --replace &
fi
# Do stuff after unlocking...
if [ "$COMPOSITING" = "true" ]
then
# turn on
kwriteconfig --file kwinrc --group Compositing --key Enabled true
# Then restart kwin (in Alt+F2) with:
kwin --replace &
fi
============
Improved version of the workaround script (if compositing is off, it does nothing): kde4/libexec/ kscreenlocker:
/usr/lib/
============
#!/bin/sh
#store compositing setting KWin.compositin gActive`
COMPOSITING=`qdbus org.kde.kwin /KWin org.kde.
# Do stuff before locking...
if [ "$COMPOSITING" = "true" ]
then
kwriteconfig --file kwinrc --group Compositing --key Enabled false
kwin --replace &
fi
# lock screen kde4/libexec/ kscreenlocker. bin $@
/usr/lib/
# Do stuff after unlocking...
if [ "$COMPOSITING" = "true" ]
then
# turn on
kwriteconfig --file kwinrc --group Compositing --key Enabled true
# Then restart kwin (in Alt+F2) with:
kwin --replace &
fi
============