Thanks to visit codestin.com
Credit goes to github.com

Skip to content

suspectpart/awm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

awm - Another Window Manager

Implementing a basic Window Manager in Rust. This is just a fun project for experimenting purposes. There is no guarantee that this won't fuck up your system in any bad way imaginable, as I don't know anything about Window Managers and Rust at all.

I got the basic idea and setup from this article: A Window Manager in Rust

I kind of translated some C-Code to Rust to make the basic example work: Window creation/X11

The XServer calls are realized with rust-xlib: rust-xlib

Have fun!

Prerequisites

Install Rust and the Cargo build system:

$ curl -sSf https://static.rust-lang.org/rustup.sh | sh

Install the Xephyr server as a test XServer for the Window Manager (assuming Arch with pacman):

$ sudo pacman -Su xorg-server-xephyr

How to build

Clone this repository and use cargo to build:

$ git clone [email protected]:suspectpart/awm 
$ cd awm 
$ cargo build 

How to run:

First, we start the Xephyr server with a DISPLAY of :42, running as a background job:

$ Xephyr :42 &  

Then, we run our app, connecting to that display by setting the $DISPLAY environment variable:

$ DISPLAY=:42 ./target/debug/awm &

Right now, all you should see is just some white box somewhere on that screen. Closing the Xephyr server should kill all related jobs.

About

Implementing a basic Window Manager in Rust.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages