random/hibernate-replacekde.sh

12 lines
352 B
Bash
Raw Permalink Normal View History

2022-02-27 18:19:40 -06:00
#!/bin/sh
# This script replaces the Plasma sessions after waking up from hibernation.
# It's a temporary fix for the app menu breaking after waking up from hibernation.
# Have to place this script inside `/lib/systemd/system-sleep` and make it executable for it to work.
case $1/$2 in
post/hibernate)
2022-02-27 22:59:32 -06:00
DISPLAY=:0 kwin_x11 --replace
2022-02-27 18:19:40 -06:00
;;
esac