dwm is a minimalistic window manager. In Linux and OpenBSD case when you install it, it works by default. Pressing CMD+SHIFT+ENTER opens a terminal.
This doesn't work on FreeBSD. I think dwm tries to open uxterm by default, which I couldn't find on FreeBSD.
Somehow it works by default in OpenBSD.
(In reply to Wojciech A. Koszek from comment #0)
dwm on FreeBSD comes with no additional patches by default. Stock dwm is configured to launch st (available as x11/sterm in ports). I don't know about OpenBSD but Debian is patching dwm to launch xterm instead.
Actually, after the installation of dwm you should get a message that it is recommended to install additionally install sterm and dmenu. It's because dwm is preconfigured to launch those programs.
In order to modify the terminal dwm is launching when you hit Mod+Shift+Enter you've got to provide your own config.h file. This is the standard way to modify most software from suckless.org:
1. Get a copy of config.h (for example from here)
2. Get a copy of the ports tree on your machine
3. Install dwm from ports using DWM_CONF to point to your custom config.h:
# cd /usr/ports/x11-wm/dwm
# make DWM_CONF="/path/to/your/config.h" install
PS I am trying to provide a detailed answer for future reference for other people who might not be experienced with FreeBSD just yet. Hence all those links to things you probably know better than I do. :)
I guess that we can think about two things here:
1. Should we improve the after installation message? It seems to be a little bit confusing at the moment.
2. Should we patch dwm just as Debian and OpenBSD do so that it use xterm, which is probably already installed by the time you launch dwm?
Let me know what you think.
If OpenBSD can work out of the box, so should FreeBSD. We can accomplish this by making dwm package depend on whatever other package it needs by default -- uxterm for dwm, so that when you `pkg install dwm`, the uxterm gets installed too.
I guess that replacing st with uxterm seems to be a good idea.
I am introducing an option, which adds x11/sterm and x11/dmenu to the runtime dependencies of dwm.
Differential revision: https://reviews.freebsd.org/D16358
A commit references this bug:
Date: Fri Jul 20 09:40:26 UTC 2018
New revision: 475000
x11-wm/dwm: New option, which adds st and dmenu to runtime dependencies
This patch adds an option to the dwm port, which makes x11/dmenu
and x11/sterm be runtime dependencies of dwm. The option is enabled
by default so that it's useful to users depending on pkg.
- Remove unused PATCH_SITES.
- Silence STRIP_CMD.
- Remove now outdated pkg-message.
Reported by: wkoszek
Reviewed by: krion (mentor)
Approved by: krion (mentor)
Differential Revision: https://reviews.freebsd.org/D16358