Building my own window manager

hi does someone knows where i can learn how to make your own window manager with python?

Attached: unnamed.png (600x419, 188.77K)

Other urls found in this thread:

awesomewm.org/doc/api/libraries/awful.client.html
en.wikipedia.org/wiki/Wayland_(display_server_protocol)),
wayland-book.com/libwayland/interfaces.html)
youtu.be/arLQA52Ieik
github.com/bakkeby/dwm-commented
github.com/mackstann/tinywm
xcb.freedesktop.org/manual/
xcb.freedesktop.org/tutorial/
x.org/releases/X11R7.7/doc/xorg-docs/icccm/icccm.html
specifications.freedesktop.org/wm-spec/wm-spec-latest.html
github.com/dylanaraps/sowm
nim-lang.org/documentation.html
twitter.com/SFWRedditVideos

For starters learn how to interface with Xorg

Awesomewm uses lua...
Yeah id start with that this is one of the harder things

what should i search, how to make an interface with xorg or what?

i should learn lua?

Yep go over this doc right here
awesomewm.org/doc/api/libraries/awful.client.html

Download one written in python and read the source code

Poster is an idiot.
Just learn Wayland and use wlroots. No need to learn legacy stuff.

Also, someone has written an entire Wayland WM in Python 3 before, but I forgot what it was called...

this.

Xorg is legacy code.
So, except if you want your system to run on legacy, aim directly for Wayland.

Start by learning about Wayalnd (en.wikipedia.org/wiki/Wayland_(display_server_protocol)), and study Weston.

Have also a look at Wayland's interfaces (wayland-book.com/libwayland/interfaces.html)

no nvidia support

Well, code it then.
If even obscure GU like Vivante have Etnaviv or Nouveau, why in hell nvidia wouldn't have at least ultra basic support?

>with Python
pytoddlers BTFO'd yet again

dont listen to him bro ive used awesome for about a year and i got sick of how shit it performs
lua is not a good language to make systems level software, awesome has performance rivaling that of gnome, with the same memory usage and i dont know how.

>Well, code it then.
just werks on xorg

I'd recommend learning some basic C (its easy), checking out dwm, and learning how to extend it yourself:

youtu.be/arLQA52Ieik - video explanation

github.com/bakkeby/dwm-commented

I'd also *highly* recommend reading the source code of tinywm, it has a python implementation as well as a C implementation:

github.com/mackstann/tinywm

warning though, X documentation is god awful, so be prepared :) gl op

the basics of X11:
xcb.freedesktop.org/manual/
xcb.freedesktop.org/tutorial/
x.org/releases/X11R7.7/doc/xorg-docs/icccm/icccm.html
specifications.freedesktop.org/wm-spec/wm-spec-latest.html

for pythons you'll need xcb/xlib bindings.

Check out also the code of sowm to get some ideas of how a barebone wm works:
github.com/dylanaraps/sowm

glhf

this, i used awesome for a while but somehow it manages to be so bloated even when you try to set it up minimally

>window manager
why would you need this? just hire Juarez

Attached: file.jpg (960x540, 176.87K)

>xorg anything
>just werks
no

>waylandfags coping this hard

>xturds coping even harder

all i know is nvidia doesn't work on wayland while i've never had issues with it on xorg
cry about it, maybe in another 20 years sister!

based

waytard, there's a reason why there's a gorillon window manager, diy toolkits and even bare X programs and not in wayland.
>inb4 choice is bad
>inb4 wayland is new (its not, its 13 yo)

with PYTHON
jfc stop right there

learn what python is for and what its limitations are. Do you want to be running your entire WM through an interpreter? Python is great for some things but primarily C and other fast compiled languages should be used for applications. Python is a great *scripting* language.

It still supports Nouveau.

>Buying Nvidia, btw

I would write the wm with this
nim-lang.org/documentation.html

nvidia a shit
choice isn't bad
a gorillon shitty window managers, shitty diy toolkits and shitty bare X programs are bad tho