A Very Simple X11 Window Manager
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1014 B

4 years ago
## Nimwin
### What is this?
4 years ago
A very simple X11 window manager written in Nim, and inspired by TinyWM and XMonad.
4 years ago
### How to build it?
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?
4 years ago
#### Xephyr
4 years ago
* Install [Xephyr](https://en.wikipedia.org/wiki/Xephyr)
* Make sure you have a running X server
4 years ago
Then run these commands to launch Xephyr.
4 years ago
```
Xephyr -ac -screen 1280x1024 -br -reset -terminate 2> /dev/null :1 &
env DISPLAY=:1 ./nimwin
```
4 years ago
#### xinit
Put `exec /path/to/nimwin` in your `~/.xinitrc`
4 years ago
### How to launch a window?
4 years ago
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.
4 years ago
### How to move windows
`alt + right` click allows you to resize, `alt + left click` allows you to move, `ctrl + alt + return` opens an xterm, and `alt + tab` cycles through windows, changing the focus each time. `alt + t` makes a window full-screen.