summaryrefslogtreecommitdiff
path: root/kanotix-reset-kf5-panel
blob: be18c20600b3c94948894d93e09d0eecf25e8ba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
if [ "$(id -u)" = "0" ]; then
  echo "Error: Do NOT run this script as root!" >&2
  exit 1
fi
if [ -z "$DISPLAY" ]; then
  echo "Error: This script does NOT run without X!" >&2
  exit 2
fi
killall -9 plasmashell
killall -9 kwin_x11

rm -f ~/.cache/plasma*
rm -f ~/.cache/qt*
rm -f ~/.config/plasma-org.kde.plasma.desktop-appletsrc
rm -f ~/.config/kdeglobals ~/.config/kwinrc ~/.config/plasmarc ~/.config/ksplashrc
cp /etc/skel/.config/kdeglobals /etc/skel/.config/kwinrc /etc/skel/.config/plasmarc /etc/skel/.config/ksplashrc ~/.config/

if [ -e ~/.nocompiz ]; then
    echo "[Compositing]" >> ~/.config/kwinrc
    echo "Enabled=false" >> ~/.config/kwinrc

fi
kwin_x11 &
plasmashell &