x11

How can Python access the X11 clipboard?

I want my Python script to be able to copy and paste to/from the clipboard via x11 (so that it will work on Linux). Can anyone point me to specific resources I can look at, or the concepts I would have to master? Is this possible to do with the Python X library at http://python-xlib.sourceforge.net ? ...

Record frames from X11 into a file

I think there should be some sort of internal support on screen capture utilities with X11. So how can capture frames from X11 frame-buffer into a file eg. avi, jpeg etc.? Sultan ...

xrandr changes X's orientation too slowly

Hello, I'm changing X's orientation with following command xrandr -o left xrandr -o normal ... When orientation is changing screen becomes black for a moment then it switches orientation. So how to get rid of this black screen effect ? Maybe some other options should be added to xrandr ? Regards, Levon ...

how to remote control windows from linux without close the session.

I am coding on my laptop, and watching online video on an windows pc. the suck video site can't turn to fullscreen mode back after goto next video, so I want to use laptop(linux) to remote control the windows. But... when I using rdesktop login to the windows, the current session was logout, ... So , what can I do, is there any client...

How to use german umlaute in Mac os x X11 xterm

Hi, I have a macbook pro with german keyboard layout. In the X11 xterm application, when I type umlaute like ä,ö,ü,ß, then they don't show up. And ß shows the history like the up-arrow. On the other hand if I start emacs in x11 (not in the xterm) then everything works fine. How can I configure X11 xterm to type all characters? And yes,...

getting selected text in current window

I'm trying to build a script that will add the currently selected text to the end of a file. So far it looks like cat selected_text >> quotes.txt. Is there any way, either in command line or in C/C++ to get the currently selected text from the currently active window? ...

Discover the size of a panel with Xlib

I'm writing a application that put docks in the right side of the screen, like this: I can reserve space in the side of the screen by using the _NET_WM_STRUT_PARTIAL, so that the maximized windows won't overlap the docks. In the image, you can see that there is a top panel. The problem is that the docks will overlap the panel. Is the...

How does one build a new X11 3D driver?

I was wondering why there is no X11 driver for the mali 3D arm gfx chip. I looked into building an X11 driver for the available kernel driver, but could not find any documentation on how to build an X11 3D driver. There exists only the minimal amount of documentation about how to build projects like DRI and Mesa, but no documentation a...

Global Hotkey with X11/Xlib

My goal is to have a program that sleeps in the background but can be activated by the user via some "hotkey". From digging around the Xlib manual and the Xlib O'reilly manual, I gather that the correct way to to this is with XGrabKey. However my understanding of the process is incorrect as a simple proof of concept does not work. My un...

ld can't find X11 library on OSX Leopard

I have a pretty basic X11 app that I run on Linux that I'm trying to get compiled under OSX 10.5.8. I have X11 and the X11 SDK installed, and modified the makefile as follows: CFLAGS = -L/usr/X11/lib -I/usr/X11/include Everything compiles fine, but the linker can't find the X11 lib. ld: library not found for -lX11 I've looked on goog...

How to save XImage as bitmap?

Hello, i'm trying to create JNI C++ library that will capture desktop video (frames). First step is to simply make a screenshot of desktop. Code is : #include <iostream> #include <X11/Xlib.h> using namespace std; int main() { Display *display; int screen; Window root; display = XOpenDisplay(0); ...