Skip to content

DWM

I have looked at the arch wiki. It isn't written so well. Is that the best way to install dwm? Is there a better way?

0 points22 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 100% up
Kind
Text
ID
33ph6e

Author

85
posts
767
comments
6
media
View profile

22 comments

Since dwm is customized almost entirely by editing the source code, building from source really is the best way to go for installing it.

You can just go the pacman -S route, but you miss out on a lot of configuration that way.

4 points

You can just install using pacman. If you go this route though you can't do any configuring. This is mentioned in the note on the wiki page:

Note: By omitting compiling dwm from source a great deal of customizability is lost, since dwm's entire configuration is performed by editing its source code. Taking this in mind, the rest of the article assumes that dwm has been compiled from source as explained in the entirety of this section.

3 points

... dwm's entire configuration is performed by editing its source code.

Wow. That's hardcore. In that case, I retract my statement on the wiki being out of date, and see the value of the use of ABS rather than the main repo.

2 points

The -git section is the way to go with dwm, so

git clone http://git.suckless.org/dwm ~/build/dwm
cd ~/build/dwm
cp config.def.h config.h
$EDITOR config.h
make
sudo make install
2 points

Use pacman packages wherever possible.

1 points

Yeah, that's how it is 99% of the time, but due to dwm's nature, you end up with a heavily customized version of it so it makes no sense for it to be tracked by your package manager.

1 points

Ok, I followed these steps and have gotten dwm installed. If I change the cogfig.h do I just re make and install again or do I need to remove something?

1 points

Git is especially handy lately since dwm has recently had a few much-needed updates (in particular, xft fonts with fallback support)

1 points

So clone from the website then is best then? Then don't use abs and makepkg -i as suggested by the arch wiki?

1 points

To install dwm: sudo pacman -S dwm

I'll assume you know how to change your WM.

I have the exact opposite reaction to the Arch wiki - I find that it's pretty well-written for a technically oriented site, and amazingly detailed.

I recently changed from an ATI to an NVIDIA GPU, and the amount of information on the Nouveau driver vs. the proprietary NVIDIA one was amazing. I've never seen a more comprehensive page on the topic.

1 points

I believe they were saying that the arch wiki page for Dwm isn't well written.

4 points

Yes I meant the DWM entry relative to the rest of the arch wiki. In fact at the top of the entry it says that it isn't well written.

1 points

I am currently using i3 and it is great. Am I going to be disappointed with the functionality of DWM? Is the bar configurable?

1 points

dwm's bar listens to WM_NAME property, this is set using xsetroot -name. This makes it extremly flexible using simple shell like acpi, awk, sed and other commands to display battery, keyboard, date, etc.

By its nature of being extremely minimal, it doesn't have things like colour in the bar and other things, so you'll need to edit the source code. There are many many patches that can be applied with a simple git apply

http://dwm.suckless.org/customisation/patches_in_git

1 points

The ideal way is to use the abs + makepkg as described in the wiki.

I usually, copy the contents of the abs to a folder in my home directory that I use to hack around dwm.

So copy the folder. Edit config.h with keybindings and customizations as you please. Build with "makepkg" and install with "pacman -U".

DWM is not usually updated too much - I set it to ignore in pacman so it doesn't auto update from the repos (I am still on 6.0.1).

Tip:

a) I only set minimal keybindings in config.h. Most other things I configure using xbindkeys.

b) Patches exist that you can merge in to your files. You can find them on the dwm website and arch forum.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.