#wm #x11 #terminal

bin+lib umberwm

minimalist X11 window manager

26 releases

0.0.27 Jul 15, 2021
0.0.24 Jun 27, 2021
0.0.20 Feb 15, 2021
0.0.17 Nov 15, 2020
0.0.13 Jul 31, 2020

#54 in GUI

Download history 25/week @ 2021-04-07 41/week @ 2021-04-14 50/week @ 2021-04-21 27/week @ 2021-04-28 4/week @ 2021-05-05 27/week @ 2021-05-12 35/week @ 2021-05-19 7/week @ 2021-05-26 5/week @ 2021-06-02 28/week @ 2021-06-09 3/week @ 2021-06-16 23/week @ 2021-06-23 19/week @ 2021-06-30 20/week @ 2021-07-07 45/week @ 2021-07-14 11/week @ 2021-07-21

87 downloads per month
Used in 2 crates

MIT license

56KB
1.5K SLoC

umberwm 🐏

Discord

Minimalistic X window manager based on tinywm, inspired by qtile.

UmberWM Screenshot

Video introduction on LBRY or on youtube.

Design goals and features

  • Kiss: only window management (no taskbar, system tray, ...), complex stuff should be done using other programs (rofi, ...)
  • Configuration can be as code (like qtile, dwm, xmonad), as RON, or both.
  • Tiled by default (Binary space partitioning)
  • Supports workspaces
  • Supports multiple displays

Prerequisites

You will need XCB bindings with the randr extension.

Ubuntu: sudo apt install libxcb-randr0-dev.

Using it (binary)

  1. Install rust and cargo
  2. cargo install umberwm
  3. run it once umberwm
  4. it will generate ~/.config/umberwm.ron(using RON file format)
  5. modify umberwm.ron as you see fit (more details on each field in src/main.rs)
  6. next time you run umberwm, it will take into account your configuration

Using it by modifying the source code

UmberWM is used/configured in rust, here is how to use it:

  1. Install rust and cargo

  2. Clone this project: git clone https://github.com/yazgoo/umberwm

    • Note: if you don't want to modify the source code, you can instead add umberwm as a dependency to your own project. See using it as a dependency.
  3. Edit src/main.rs.

  4. Edit umberwm-start if desired. Here you can launch any programs you need to before launching umberwm.

  5. Run cargo build --release. The binary will be available in target/release/umberwm.

  6. Optionally, run ./install.py. This will do three things:

    1. Symlink target/release/umberwm to /usr/bin.
    2. Symlink umberwm-start to /usr/bin.
    3. Copy umberwm.desktop to /usr/share/xsessions. This will allow display managers such as GDM to find umberwm and allow you to launch it.
  7. If you do not use a display manager, you will need to add the following to your .xinitrc:

    exec umberwm-start
    

Using it as a dependency

If you don't want to modify the source code, you can create your own rust project and add umberwm as a cargo dependency.

Cargo.toml:

# ...
[dependencies]
umberwm = "0.0.21"

You can then supply your own main.rs rather than editing the existing one. It is advised that you use main.rs from this repository as your starting point.

See examples:

Note that you will have to manually set up umberwm-start and umberwm.desktop if you wish to use them.

Hot reloading

Hot reloading allows to restart umberwm while keeping its state (i.e. keeping track of windows and their relative workspaces). This is quite useful when you want to update your configuration.

In wm_actions:, the action Actions::SerializeAndQuit will serialize all of its windows and then quit with exit code 123. The umberwm-start script checks for the exit code 123 and reruns umberwm, thereby facilitating a smooth restart.

Dependencies

~2.3–3MB
~67K SLoC