1
0
Fork 0
mirror of https://github.com/Cloudef/bemenu synced 2024-05-21 15:06:10 +02:00
bemenu/README.md

88 lines
3.2 KiB
Markdown
Raw Normal View History

2014-03-18 17:20:33 +01:00
bemenu
======
Dynamic menu library and client program inspired by dmenu
2014-03-18 18:31:50 +01:00
2020-02-08 10:21:39 +01:00
![preview](.github/preview.svg)
## Building
```sh
# Build everything
make
# To build only certain features, pass the targets which you are interested into
#
# You can also use the following meta-targets for common features:
# - clients (bemenu, bemenu-run)
# - x11
# - wayland
# - curses
#
# For example this would build the bemenu and bemenu-run binaries and the x11 backend:
make clients x11
# To install the built features, simply run:
make install
# NOTE: You may get errors during install when not building all the features.
# These errors are free to ignore if `Install OK!` is printed.
# By default that will install to /usr/local, but you can change this with PREFIX
make install PREFIX=/usr
# Other usual variables are available for modifying such as DESTDIR, bindir, libdir and mandir
# Note that if you want a custom PREFIX or libdir, you should pass those during build as well,
# since they will be used compile-time to figure out where to load backends from!
# HTML API documentation (requires doxygen installed):
make doxygen
2020-02-08 10:31:06 +01:00
# To test from source, you have to point the LD_LIBRARY_PATH and BEMENU_RENDERERS variables:
LD_LIBRARY_PATH=. BEMENU_RENDERERS=. ./bemenu-run
```
2020-02-07 15:35:01 +01:00
## OSX
```sh
# Make sure you have GNU Make and pkg-config installed
brew install make pkg-config
2020-02-07 15:35:01 +01:00
# You may need to setup your pkg-config to point to the brew version of the libraries
# For example to build curses backend, you'd do:
PKG_CONFIG_PATH="/usr/local/opt/ncurses/lib/pkgconfig" sh build-osx.sh curses
2020-02-07 15:35:01 +01:00
# Other than that, follow the normal build steps, but use `build-osx.sh` instead of make
2020-02-07 15:35:01 +01:00
```
2020-02-07 15:50:17 +01:00
## Dependencies
All dependencies are searched with `pkg-config`
| Backend | Dependencies |
|----------|------------------------------------------------------------------------|
2020-02-08 10:26:33 +01:00
| curses | ncursesw |
| x11 | x11, xinerama, cairo, pango, pangocairo |
2020-02-12 11:14:57 +01:00
| Wayland | wayland-client, wayland-protocols, cairo, pango, pangocairo, xkbcommon |
2020-02-07 15:50:17 +01:00
## Environment variables
| Variable | Description | Value |
|------------------|-----------------------------------------|----------------------|
| BEMENU_OPTS | Options for bemenu, bemenu-run from env | Any cli argument |
| BEMENU_BACKEND | Force backend by name | x11, wayland, curses |
| BEMENU_RENDERER | Force backend by loading a .so file | Path to the .so file |
| BEMENU_RENDERERS | Override the backend search path | Path to a directory |
| BEMENU_SCALE | Override the rendering scale factor | Float value |
## About Wayland support
Wayland is only supported by compositors that implement the [wlr-layer-shell](https://github.com/swaywm/wlr-protocols/tree/master/unstable) protocol.
Typically [wlroots](https://github.com/swaywm/wlroots)-based compositors.
2014-03-18 18:31:50 +01:00
## License
2014-03-18 20:20:11 +01:00
* [GNU GPLv3 (or any later version)](LICENSE-CLIENT) for client program[s] and
other sources except library and bindings
* [GNU LGPLv3 (or any later version)](LICENSE-LIB) for library and bindings