Calm Window Manager

Nov 7, 2020

270 words

After some BSD testing, I can say that OpenBSD works better for me, and I already use it as a workstation.

The first things I checked on OpenBSD were audio and graphics support. Wow, its sndio is so simple and so good. Honestly speaking, I had a kind of dance while my old machine was coughing a fresh voice. Try it yourself and see how it works for you.

On Linux I had been using i3 window manager and I liked it. Window managers are (again) simple, fast and just cool. I was thinking about grabbing my i3 configuration from Linux, but after some reading, I found another wow OpenBSD thing, which was Calm Window Manager (CWM). It comes pre-installed, so you just have to configure it as you wish. A minimal ~/.cwmrc (configuration) will look like this:

moveamount 35
borderwidth 3
color activeborder         "#c0b18b"
color inactiveborder       "#444b4b"

unbind-key all
unbind-mouse all

bind-key 4-2            "sndioctl output.level=+0.1"
bind-key 4-1            "sndioctl output.level=-0.1"
bind-key 4-0            "sndioctl output.mute=!"

bind-key M-Return       "st"
bind-key MS-v           "vlc"
bind-key MS-r           restart
bind-key MS-q           quit

bind-key M-h            window-move-left
bind-key M-j            window-move-down
bind-key M-k            window-move-up
bind-key M-l            window-move-right

bind-key MS-h           window-resize-left
bind-key MS-j           window-resize-down
bind-key MS-k           window-resize-up
bind-key MS-l           window-resize-right

bind-key M-Tab          window-cycle
bind-key MS-Tab         window-rcycle
bind-key M-q            window-close

Well, to better understand every single line, find some time and read cwmrc(5) and sndioctl(1). It should be as clear as my old machine voice that made me dance. You learn OpenBSD by reading its manual pages, which are reader-friendly and full of examples.

As usual, it’s just a starting point. Open your mind, ground yourself with truth, play and learn.




Back to top