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LWVF4NWAC JGK5XPT7C6ADDT7KF34JLNJILUL5NWTSP4RVE3DZD6TOSLCDKV7QC YW6WZKA5RA35O5XJO4USAKOMPRDGP4SRD5UG3PK2NG35RBQNMFJAC TXT5WDVXWSX6H7A5IDFPAR42VB6RJD2FKHUR5WW4UWCRJSQ4MPIAC TOFCZFUYVBVEBHMKVG6G5MKCAEF2QCQ4GKMKGQUSJRLGLDZEJF4QC dwl is a compact, hackable compositor for Wayland based on [wlroots](https://gitlab.freedesktop.org/wlroots/wlroots/). It is intended to fill the same space in the Wayland world that dwm does in X11, primarily in terms of philosophy, and secondarily in terms of functionality. Like dwm, dwl is:
dwl is a compact, hackable compositor for [Wayland] based on [wlroots]. It isintended to fill the same space in the Wayland world that dwm does in X11,primarily in terms of philosophy, and secondarily in terms of functionality.Like dwm, dwl is:
dwl is not meant to provide every feature under the sun. Instead, like dwm, it sticks to features which are necessary, simple, and straightforward to implement given the base on which it is built. Implemented default features are:
dwl is not meant to provide every feature under the sun. Instead, like dwm, itsticks to features which are necessary, simple, and straightforward to implementgiven the base on which it is built. Implemented default features are:
- Any features provided by dwm/Xlib: simple window borders, tags, keybindings, client rules, mouse move/resize. Providing a built-in status bar is an exception to this goal, to avoid dependencies on font rendering and/or drawing libraries when an external bar could work well.
- Any features provided by dwm/Xlib: simple window borders, tags, keybindings,client rules, mouse move/resize. Providing a built-in status bar is anexception to this goal, to avoid dependencies on font rendering and/ordrawing libraries when an external bar could work well.
- Implement the text-input and input-method protocols to support IME once ibus implements input-method v2 (see https://github.com/ibus/ibus/pull/2256 and https://github.com/djpohly/dwl/pull/235)
- Implement the text-input and input-method protocols to support IME once ibusimplements input-method v2 (see https://github.com/ibus/ibus/pull/2256 andhttps://github.com/djpohly/dwl/pull/235)
Simply install these (and their `-devel` versions if your distro has separate development packages) and run `make`. If you wish to build against a Git version of wlroots, check out the [wlroots-next branch](https://github.com/djpohly/dwl/tree/wlroots-next).
Simply install these (and their `-devel` versions if your distro has separatedevelopment packages) and run `make`. If you wish to build against a Gitversion of wlroots, check out the [wlroots-next branch].
All configuration is done by editing `config.h` and recompiling, in the same manner as dwm. There is no way to separately restart the window manager in Wayland without restarting the entire display server, so any changes will take effect the next time dwl is executed.
All configuration is done by editing `config.h` and recompiling, in the samemanner as dwm. There is no way to separately restart the window manager inWayland without restarting the entire display server, so any changes will takeeffect the next time dwl is executed.
As in the dwm community, we encourage users to share patches they have created. Check out the [patches page on our wiki](https://github.com/djpohly/dwl/wiki/Patches)!
As in the dwm community, we encourage users to share patches they have created.Check out the [patches page on our wiki]!
dwl can be run on any of the backends supported by wlroots. This means you can run it as a separate window inside either an X11 or Wayland session, as well as directly from a VT console. Depending on your distro's setup, you may need to add your user to the `video` and `input` groups before you can run dwl on a VT. If you are using `elogind` or `systemd-logind` you need to install polkit; otherwise you need to add yourself in the `seat` group and enable/start the seatd daemon.
dwl can be run on any of the backends supported by wlroots. This means you canrun it as a separate window inside either an X11 or Wayland session, as wellas directly from a VT console. Depending on your distro's setup, you may needto add your user to the `video` and `input` groups before you can run dwl ona VT. If you are using `elogind` or `systemd-logind` you need to installpolkit; otherwise you need to add yourself in the `seat` group andenable/start the seatd daemon.
When dwl is run with no arguments, it will launch the server and begin handling any shortcuts configured in `config.h`. There is no status bar or other decoration initially; these are instead clients that can be run within the Wayland session.
When dwl is run with no arguments, it will launch the server and begin handlingany shortcuts configured in `config.h`. There is no status bar or otherdecoration initially; these are instead clients that can be run withinthe Wayland session.
If you would like to run a script or command automatically at startup, you can specify the command using the `-s` option. This command will be executed as a shell command using `/bin/sh -c`. It serves a similar function to `.xinitrc`, but differs in that the display server will not shut down when this process terminates. Instead, dwl will send this process a SIGTERM at shutdown and wait for it to terminate (if it hasn't already). This makes it ideal for execing into a user service manager like [s6](https://skarnet.org/software/s6/), [anopa](https://jjacky.com/anopa/), [runit](http://smarden.org/runit/faq.html#userservices), or [`systemd --user`](https://wiki.archlinux.org/title/Systemd/User).
If you would like to run a script or command automatically at startup, you canspecify the command using the `-s` option. This command will be executed as ashell command using `/bin/sh -c`. It serves a similar function to `.xinitrc`,but differs in that the display server will not shut down when this processterminates. Instead, dwl will send this process a SIGTERM at shutdown and waitfor it to terminate (if it hasn't already). This makes it ideal for execing intoa user service manager like [s6], [anopa], [runit], or [`systemd --user`].
Note: The `-s` command is run as a *child process* of dwl, which means that it does not have the ability to affect the environment of dwl or of any processes that it spawns. If you need to set environment variables that affect the entire dwl session, these must be set prior to running dwl. For example, Wayland requires a valid `XDG_RUNTIME_DIR`, which is usually set up by a session manager such as `elogind` or `systemd-logind`. If your system doesn't do this automatically, you will need to configure it prior to launching `dwl`, e.g.:
Note: The `-s` command is run as a *child process* of dwl, which means that itdoes not have the ability to affect the environment of dwl or of any processesthat it spawns. If you need to set environment variables that affect the entiredwl session, these must be set prior to running dwl. For example, Waylandrequires a valid `XDG_RUNTIME_DIR`, which is usually set up by a session managersuch as `elogind` or `systemd-logind`. If your system doesn't do thisautomatically, you will need to configure it prior to launching `dwl`, e.g.:
Information about selected layouts, current window title, and selected/occupied/urgent tags is written to the stdin of the `-s` command (see the `printstatus()` function for details). This information can be used to populate an external status bar with a script that parses the information. Failing to read this information will cause dwl to block, so if you do want to run a startup command that does not consume the status information, you can close standard input with the `<&-` shell redirection, for example:
Information about selected layouts, current window title, andselected/occupied/urgent tags is written to the stdin of the `-s` command (seethe `printstatus()` function for details). This information can be used topopulate an external status bar with a script that parses the information.Failing to read this information will cause dwl to block, so if you do want torun a startup command that does not consume the status information, you canclose standard input with the `<&-` shell redirection, for example:
dwl began by extending the TinyWL example provided (CC0) by the sway/wlroots developers. This was made possible in many cases by looking at how sway accomplished something, then trying to do the same in as suckless a way as possible.
dwl began by extending the TinyWL example provided (CC0) by the sway/wlrootsdevelopers. This was made possible in many cases by looking at how swayaccomplished something, then trying to do the same in as suckless a way aspossible.
Many thanks to suckless.org and the dwm developers and community for the inspiration, and to the various contributors to the project, including:
Many thanks to suckless.org and the dwm developers and community for theinspiration, and to the various contributors to the project, including:
[Discord server]: https://discord.gg/jJxZnrGPWN[#dwl]: https://web.libera.chat/?channels=#dwl[Wayland]: https://wayland.freedesktop.org/[wlroots]: https://gitlab.freedesktop.org/wlroots/wlroots/[wlroots-next branch]: https://github.com/djpohly/dwl/tree/wlroots-next[patches page on our wiki]: https://github.com/djpohly/dwl/wiki/Patches[s6]: https://skarnet.org/software/s6/[anopa]: https://jjacky.com/anopa/[runit]: http://smarden.org/runit/faq.html#userservices[`systemd --user`]: https://wiki.archlinux.org/title/Systemd/User[wiki]: https://github.com/djpohly/dwl/wiki#compatible-status-bars[list of useful resources on our wiki]:https://github.com/djpohly/dwl/wiki#migrating-from-x