title: Restart KDE without reboot
body: <p>I am using KDE Plasma Version 5.5.5 on my Laptop and frequently plug in and unplug different external screens. That causes me following problems:</p>
  
  <ul>
  <li>External monitor stays black after plugging it in.</li>
  <li>I cannot set the internal monitor as primary monitor after unplugging the external.</li>
  <li>The panel at the bottom vanishes.</li>
  <li>Artifacts in windows such as a vanished title bar.</li>
  </ul>
  
  <p>Sometimes the following helps:</p>
  
  <pre><code>killall plasmashell
  kstart plasmashell
  </code></pre>
  
  <p>or</p>
  
  <pre><code>xrandr --output DP1 --mode 1680x1050 --primary
  xrandr --output DP1 --mode 1920x1080 --primary
  xrandr --output eDP1 --mode 1680x1050
  xrandr --output eDP1 --mode 1920x1080
  </code></pre>
  
  <p>or just the plain command without any options:</p>
  
  <pre><code>xrandr
  </code></pre>
  
  <p>Is there another way of restarting Plasma and rerendering all windows that is more effective? Without rebooting or logging out?</p>