The easiest and safest way to install newm is by means of its aur package which is installed as follows:
yay -S newm-git
Maybe you want to test features in development or help with debugging, whatever the case, the following tutorial aims to show how to install a different branch from the main newm branch.
- Clone PKBUILD
yay -G newm-git
- Navigate to the downloaded folder
cd newm-git
- Clone pywm and newm
git clone https://github.com/jbuchermn/pywm.git --branch=<any branch>
git clone https://github.com/jbuchermn/newm.git --branch=<any branch>
- Build and install
makepkg -sic