Linux. restart kwin and plasma after suspend
— Обсуждение тут — 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 […]