You are not logged in.

#26 2020-01-16 20:05:39

Colonel Panic
Member
Registered: 2018-11-13
Posts: 372

Re: [Solved] Trying to compile dwm from source in Debian

Sure, this is what I did. I'm not sure all these steps are necessary but they worked.

First off, I got into the root account;

sudo su root [password]

Then, I installed all these libraries in turn;

apt-get install libx11-dev libxft-dev libxinerama-dev build-essential

Then the source file for dwm itself;

apt-get source dwm

and finally the freetype 6 library, and the build dependencies for dwm;

apt-get install libfreetype6-dev

apt-get build-dep dwm 

Then I switched to the dwm build directory and changed the auxiliary key in the config.h file from Alt;

#define MODKEY Mod1Mask

to Win;

#define MODKEY Mod4Mask

and then finally, I compiled the window manager;

cd / home/user/dwm-6.1
make install

Job done.

Last edited by Colonel Panic (2020-01-16 20:12:25)

Offline

#27 2020-01-16 20:11:50

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 767

Re: [Solved] Trying to compile dwm from source in Debian

^Excellent, thanks. This basically what is written on DebianDwm. It is good to know those instructions (still) works as expected.


Postpone all your duties; if you die, you won't have to do them ..

Offline

#28 2021-05-25 11:15:25

Colonel Panic
Member
Registered: 2018-11-13
Posts: 372

Re: [Solved] Trying to compile dwm from source in Debian

A quick update; this also works in MX (based on Debian, of course) and if instead of getting the Debian source file, you download the dwm source file from the suckless website. One problem I've found is that the key command sequence for launching a terminal in dwm (Mod-Shift-Return) doesn't seem to work in MX so you have to use dmenu instead.

Last edited by Colonel Panic (2021-05-25 20:46:56)

Offline

#29 2021-06-06 15:29:15

Colonel Panic
Member
Registered: 2018-11-13
Posts: 372

Re: [Solved] Trying to compile dwm from source in Debian

Another update; this also works in Ubuntu 18, although I had to add some 'source' URIs to my sources.list before build-dep would compile.

I solved this by installing software-properties-gtk and then checking the "Source code" box.

https://askubuntu.com/questions/496549/ … urces-list

Last edited by Colonel Panic (2021-06-06 22:10:15)

Offline

#30 2021-10-24 14:56:15

Colonel Panic
Member
Registered: 2018-11-13
Posts: 372

Re: [Solved] Trying to compile dwm from source in Debian

Yet another update; I mentioned above that I was having trouble getting the terminal to launch in dwm when I used the expected key combination (Mod - Shift - Enter). 

I checked the configuration file and found it was set up to use st (suckless's own terminal) as the default terminal, which isn't installed in the system; so I changed this to xterm, which is already installed in the system, and recompiled and now all is fine.

(Another option of course is to download st from the suckless website and install that, instead of updating the configuration file).

Also, by default dwm opens a new Firefox window in the #9 workspace. If you want to open it in #1 as normal, delete the line in the config file which contains Firefox. This one;

{ "Firefox",  NULL,       NULL,       1 << 8,       0,           -1 },

The only problem I have with dwm now is that Softmaker Free Office (and probably Office too) doesn't play well with it and you can't use the menus in Free Office although the key bindings (Ctrl-S to save a file, etc.) still work.

Last edited by Colonel Panic (2021-10-26 18:53:38)

Offline

Board footer

Powered by FluxBB