Run command afterr unlock

Hi all,

I’ve found that whenever I unlock my PC on wakeup from standby, especially, that:

  1. kwin compositor is misbehaving; and

  2. my dock, glx-dock, is also misbehaving.

For both of these a simple restart works to resolve it:

  • kwin with:
kwin_x11 --replace >/dev/null 2>&1 & && bg
  • glx-dock, formerly cairo-dock, with
killall cairo-dock && cairo-dock > /dev/null 2>&1 & disown

My question(s), therefore, is this a known thing? If not, is there anything I can do to fix it? I wouldn’t even slightly surprise me if there is something I’m missing, or have missed.

If so, and what I’m doing as workaround is correct, is there a way I can automate the process to run both command on unlock?