dpms off, ignoring mouse and switch composer to prevent possible glitches
xinput --disable "Logitech USB Optical Mouse"
pkill picom
sleep .1
xset dpms force off
while : ; do
status="$(xset q)"
if [[ $status == *"Monitor is On"* ]]; then
xinput --enable "Logitech USB Optical Mouse"
setsid picom
break
fi
done
Комментариев нет:
Отправить комментарий