From abf76dc35abbcf6f51ef1349fe4300b793cfab33 Mon Sep 17 00:00:00 2001 From: Wesley Kerfoot <378351+weskerfoot@users.noreply.github.com> Date: Mon, 22 Jun 2020 12:04:19 -0400 Subject: [PATCH] Update README.md --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9691999..7a0a9f2 100644 --- a/README.md +++ b/README.md @@ -7,15 +7,18 @@ A very simple X11 window manager written in Nim, and inspired by TinyWM and XMon Install nim and nimble and run `nimble build`. You must have XLib development headers on your system (and obviously an X server). ### How to run it? +#### Xephyr * Install [Xephyr](https://en.wikipedia.org/wiki/Xephyr) * Make sure you have a running X server - -Then run these commands to launch Xephyr. You could also directly execute nimwin from your `~/.xinitrc` which will launch it directly when your X session starts. +Then run these commands to launch Xephyr. ``` Xephyr -ac -screen 1280x1024 -br -reset -terminate 2> /dev/null :1 & env DISPLAY=:1 ./nimwin ``` +#### xinit +Put `exec /path/to/nimwin` in your `~/.xinitrc` + ### How to launch a window? If you want to run xterm, for example, just set `NIMWIN_LAUNCHER` to a launcher (e.g. `dmenu`), and then type `Alt + p` to invoke it.