Installation
Archlinux (AUR)
paru -S marswm
# or
yay -S marswm
marswm-git
is also available as the development version.
NetBSD (Official repositories)
pkgin install marswm
or, if you prefer to build it from source
cd /usr/pkgsrc/wm/marswm
make install
Nix
marswm
is currently not officially packaged for Nix.
You can use the derivation in examples/default.nix
to install it on your machine.
Make sure to update the version number and hash accordingly.
Other (cargo)
This guide shows installation for a standard Linux distribution that supports the Standard File Hierarchy.
For non-standard distributions (e.g. doas
instead of sudo
, no FHS-support) you will have to change some things.
But in that case chances are you know what to do anyway.
First make sure you have the following libraries installed natively via your package manager: libX11
, libXft
, libXinerama
, libXrandr
.
Make sure to also include their development version if your distribution splits up packages in this manner.
Then you can build and install marswm
and its components with cargo:
sudo cargo install --root=/usr/local/ marswm marsbar mars-relay
To run marswm
directly from your display manager of choice you will have to add a .desktop
file.
You can copy ./marswm.desktop
, but make sure to replace PATH
with your actual path (e.g. /usr/local/bin
).
Usually it goes into /usr/share/xsessions
.