Linux. restart kwin and plasma after suspend

Linux DE

kwin-restart@.service

#/etc/systemd/system/kwin-restart@.service
#sudo systemctl enable kwin-restart@$USER.service
#sudo systemctl start kwin-restart@$USER.service
#sudo systemctl stop kwin-restart@$USER.service
#sudo systemctl disable kwin-restart@$USER.service 

[Unit]
Description=Restart kwin after resuming
After=suspend.target
StopWhenUnneeded=yes

[Service]
User=%i
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/env bash -c "XDG_RUNTIME_DIR=/run/user/`id --user` DISPLAY=:0 XDG_CURRENT_DESKTOP=KDE kwin_x11 --replace &"

[Install]
WantedBy=suspend.target
Alias=kwin-restart@%i.service

plasma-restart@.service

#/etc/systemd/system/plasma-restart@.service
#sudo systemctl enable plasma-restart@$USER.service
#sudo systemctl start plasma-restart@$USER.service
#sudo systemctl stop plasma-restart@$USER.service
#sudo systemctl disable plasma-restart@$USER.service 

[Unit]
Description=Plasma Restart Service 
After=suspend.target 
StopWhenUnneeded=yes

[Service]
User=%i
WorkingDirectory=/home/%i
Type=oneshot
Slice=user-%i.slice
RemainAfterExit=yes
ExecStart=/bin/bash -alc "sudo -Hiu %i pkill -ABRT plasmashell"

[Install]
WantedBy=suspend.target 
Alias=plasma-restart@%i.service