topic title: How to install dwm?
Posts: 35
antix_forum_account
Joined: 01 Feb 2013
#1
Dear forum

How to install dwm in Luddite? __{{emoticon}}__

My plan is as follows:
  • 1. Compile dwm from suckless.org source via make clean install, as suggested in their README file

    2. Tweak .xinitrc file as in...

    Code: Select all

    $ diff .xinitrc changes_xinitrc
    16c16
    < DEFAULT_DESKTOP="jwm"
    ---
    > DEFAULT_DESKTOP="dwm"
    27a28,30
    >     dwm)
    >         exec dwm
    >         ;;
I guess this approach is good enough, but perhaps I'm bugged by the following...
  • A. .xinitrc file says"Please add any modifications to .xinitrc-custom and not this file."
    I have no idea how to get the functionality of #2 above via .xinitrc-custom

    B. I intend to use some aspects of the suckless-tools package with dwm. I would prefer
    to uninstall suckless-tools package, and roll my own / compile as I need. However unless
    I'm missing something, uninstalling suckless-tools package is perhaps not straightforward
    as wmii depends on it.
So... how to install dwm?

PS. Thanks for the beautiful distro!
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#2
antix_forum_account wrote:A. .xinitrc file says"Please add any modifications to .xinitrc-custom and not this file."
If a .desktop file for dwm is created in /usr/share/xsessions/ then the program update-default-desktop will edit .xinitrc for you. It will also update / etc/slim.conf and add dwm to the list of window managers that you can select manually.

If you run update-default-desktop then it will overwrite .xinitrc which is why we suggest you put modifications in .xinitrc-custom.
Posts: 35
antix_forum_account
Joined: 01 Feb 2013
#3
Thank you BitJam __{{emoticon}}__ !

fwiw this was my dwm.desktop file

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=dwm
Exec=dwm
Type=XSession
Alanarchy
Posts 0
Alanarchy
#4
So... how to install dwm?
In a root terminal type

Code: Select all

apt-get install dwm
or if you want a Gui, do it with Synaptic.
Posts: 765
rust collector
Joined: 27 Dec 2011
#5
That is not really the"real" way to install dwm.
But, it is the way I do it, as I like it as it is.
Alanarchy
Posts 0
Alanarchy
#6
Sorry! I just couldn't resist __{{emoticon}}__ __{{emoticon}}__
Posts: 765
rust collector
Joined: 27 Dec 2011
#7
Well, it does work. As I said, that is how I do it... Because dwm is close enough to perfect for me, to use as it is.
All I really do to it, is get some information up in the bar, like battery, and time.
Posts: 12
valdoonican
Joined: 01 Mar 2014
#8
I would also like to know how to compile dwm - I dont want to just use apt-get as I want to change the keybindings then compile.
When I try to comple with,
sudo make clean install
I get the error message:

Code: Select all

dwm build options:
CFLAGS   = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/X11R6/include -DVERSION="6.0" -DXINERAMA
LDFLAGS  = -s -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -L/usr/X11R6/lib -lXinerama
CC       = cc
CC dwm.c
dwm.c:23:19: fatal error: errno.h: No such file or directory
compilation terminated.
make: *** [dwm.o] Error 1
Posts: 1,444
skidoo
Joined: 09 Feb 2012
#9
valdoonican wrote:dwm build options:
CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/X11R6/include -DVERSION="6.0" -DXINERAMA
LDFLAGS = -s -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -L/usr/X11R6/lib -lXinerama
CC = cc
CC dwm.c
dwm.c:23:19: fatal error: errno.h: No such file or directory
compilation terminated.
make: *** [dwm.o] Error 1
is xinerama installed on your system?

google search }}}"dwm xinerama"
page1 search result:
[SOLVED] Cannot compile dwm window manager - Ubuntu Forums

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://ubuntuforums.org/showthread.php?t=1843661"
linktext was:"http://ubuntuforums.org/showthread.php?t=1843661"
====================================


google search }}}"build make dwm XINERAMA"
top search result, Page 1:
Why is libxinerama kept in dwm's dependency?

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://bbs.archlinux.org/viewtopic.php?id=172059"
linktext was:"https://bbs.archlinux.org/viewtopic.php?id=172059"
====================================
Posts: 12
valdoonican
Joined: 01 Mar 2014
#10
Yes it is, I installed these before trying to compile DWM as they are needed.

sudo apt-get install libx11-dev libxinerama-dev sharutils xfonts-terminus libx11-6 libxinerama1 x11-xserver-utils

I had no trouble compiling dwm on my other debian based distro (crunchbang) but with anitX i get the message
fatal error: errno.h: No such file or directory
Is this to to with kernal libraries?
Posts: 1,062
Dave
Joined: 20 Jan 2010
#11
Did you install build-essentials ?
Posts: 12
valdoonican
Joined: 01 Mar 2014
#12
Shit no! that might be it - I dont have antix installed now - might give it another go in the future. I also had trouble with it locking my screen and nothing I did would unlock it. If i try it again in the future I might try installing an older kernel. On Crunchbang its 3.2.0-4 and it works great with my old acer travelmate.
Alanarchy
Posts 0
Alanarchy
#13
So... how to install dwm?

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://wiki.archlinux.org/index.php/Dwm"
linktext was:"https://wiki.archlinux.org/index.php/Dwm"
====================================

The default /usr/share/xsessions/dwm.desktop does not allow for a customized start like can be done in .xinitrc. A solution to this problem is to make a start script, for example /usr/bin/dwm-personalized and make an alternative xsession .desktop file (/usr/share/xsessions/dwm-personalized.desktop).