x11

Run pyautogui script inside a docker container to control the host screen

Run pyautogui script inside a docker container to control the host screen Question: At work we are using docker container to run our script on a custom made Linux machine, with a touch screen display. I’m the QA there and I want to create some automation tests, that should perform virtual touch clicks. My problem …

Total answers: 2

qt.qpa.xcb: could not connect to display localhost:17.0 DIFFERENT set up

qt.qpa.xcb: could not connect to display localhost:17.0 DIFFERENT set up Question: I run my Python code in VSCode on Windows 10 which ssh to the remote RPi 4. Got this error: qt.qpa.xcb: could not connect to display :1 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/pi/mambaforge/envs/mb/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found. This …

Total answers: 1

Pygame flickers only on second run of program

Pygame flickers only on second run of program Question: I have a simple pygame program that I’ve written that I am running on a raspberry pi CM4 using the raspberry pi lite OS (buster). As such I had to install x manually so that pygame would have something to output to. This was done using …

Total answers: 1

Issues installing ueberzug on macos

Issues installing ueberzug on macos Question: I’ve been using the lf file manager lately and wanted to try setting up ueberzug as my previewer. However, getting ueberzug to install and run properly on my mac has been a real issue. Is it perhaps that I’m missing some dependencies, like X11 or some other library? I’d …

Total answers: 1

How to redirect wsl2 display to local windows machine in python

How to redirect wsl2 display to local windows machine in python Question: I have a python game that is being run on wl2 and I would like the display to be in windows. I have tried to use the code below in my python program but it just gets stuck because it is not the …

Total answers: 1

How to move or resize X11 windows (even if they are maximized)?

How to move or resize X11 windows (even if they are maximized)? Question: I want to change position of a window. My problem is that the window can be maximized, this does not allow to change its size and location (window can belong to any application). I use KDE4. I tried to use ewmh Python …

Total answers: 1

Why XGrabKey generates extra focus-out and focus-in events?

Why XGrabKey generates extra focus-out and focus-in events? Question: Does anyone know an xlib function to trap a keypress event without losing the original focus? How to get rid of it? (or “to use XGrabKey() without generating Grab-style focusout”?) (or “How to get rid of NotifyGrab and NotifyUngrab focus events at system level?) The XGrabKey …

Total answers: 8