Search code examples
pythonlinuxxlibxserverwindow-managers

Is it possible to theme GUI applications with custom Python window manager?


I'm trying to create a simple custom window manager in Python using xlib (based on Whimsy and PLWM).

Is it possible to skin the default look of GUI applications, e.g. the default scroll bars or buttons, using just xlib? Or does this need to be done separately for each application? Or is it something else entirely?

Thanks


Solution

  • No, xlib has no notion of scroll bars or buttons. Highest level objects are windows / drawables - you can listen for events and draw on top of windows. Everything else is implemented on top of core X protocol in user code