Commit 0db8d6dd authored by Paul Tolstoi's avatar Paul Tolstoi

wake up monitor on new window

parent ed7f35f1
Pipeline #169 skipped
......@@ -2,6 +2,7 @@ import sys
import signal
import asyncio
import time
import subprocess
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QApplication, QMainWindow, QLabel
......@@ -34,6 +35,11 @@ class KnechtQT:
if self.window:
self._close_window()
try:
subprocess.run(['xset', 'dpms', 'force'])
except FileNotFoundError as e:
pass
label = QLabel()
label.setAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
label.setTextFormat(Qt.RichText)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment