<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Noste</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Noste"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Noste"/>
	<updated>2026-04-29T08:17:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Dwm&amp;diff=26656</id>
		<title>Dwm</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Dwm&amp;diff=26656"/>
		<updated>2024-04-25T17:12:14Z</updated>

		<summary type="html">&lt;p&gt;Noste: Added missing package in dwm dependencies&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:dwm}}[https://dwm.suckless.org/ dwm] is a dynamic window manager for X. It manages windows in tiled, monocle and floating layouts.&lt;br /&gt;
&lt;br /&gt;
This guide covers:&lt;br /&gt;
&lt;br /&gt;
* Installing dependencies for the [https://suckless.org suckless] tools and installing firefox &lt;br /&gt;
* Installing from source or from repository dwm (dynamic window manager), dmenu (dynamic menu), st (simple terminal)&lt;br /&gt;
* Configuring the new profile to run dwm at login.&lt;br /&gt;
&lt;br /&gt;
= Prerequisites =&lt;br /&gt;
* [[Installation|Install]] AlpineLinux&lt;br /&gt;
* [[Setting_up_a_new_user#Creating_a_new_user|Create a user account]] (optional but recommended)&lt;br /&gt;
* [[Repositories#Enabling_the_community_repository|Enable the Community repository]]&lt;br /&gt;
* [[Alpine_setup_scripts#setup-xorg-base|Install Xorg]]&lt;br /&gt;
&lt;br /&gt;
== Installing from binary repository ==&lt;br /&gt;
{{Cmd|# apk add dwm dmenu st}}&lt;br /&gt;
&lt;br /&gt;
This will install {{Pkg|dwm}}, {{Pkg|dmenu}} and {{Pkg|st}}&lt;br /&gt;
&lt;br /&gt;
== Installing from source  ==&lt;br /&gt;
&lt;br /&gt;
=== Installing dependencies ===&lt;br /&gt;
{{Note|&#039;&#039;&#039;git make gcc g++ libx11-dev libxft-dev libxinerama-dev ncurses&#039;&#039;&#039; are needed to install suckless tools from source.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;dbus-x11&#039;&#039;&#039; is needed for the dbus system (enables firefox running in dwm to open in a tile)&lt;br /&gt;
&lt;br /&gt;
The last three &#039;&#039;&#039;adwaita-gtk2-theme adwaita-icon-theme font-dejavu&#039;&#039;&#039; are optional, but recommended for a nicer looking firefox.}}&lt;br /&gt;
&lt;br /&gt;
The command to install the dependencies:&lt;br /&gt;
{{cmd|# apk add {{pkg|git}} {{pkg|make}} {{pkg|gcc}} {{pkg|g++}} {{pkg|libx11-dev}} {{pkg|libxft-dev}} {{pkg|libxinerama-dev}} {{pkg|ncurses}} {{pkg|dbus-x11}} {{pkg|firefox-esr}} {{pkg|adwaita-gtk2-theme}} {{pkg|adwaita-icon-theme}} {{pkg|font-dejavu}} {{pkg|libxft-dev}}}}&lt;br /&gt;
&lt;br /&gt;
=== Installing suckless tools dwm, dmenu, and st from source ===&lt;br /&gt;
Change to the {{Path|/tmp directory}}.&lt;br /&gt;
{{cmd|$ cd /tmp}}&lt;br /&gt;
then execute:&lt;br /&gt;
{{cmd|# git clone https://git.suckless.org/dwm}}&lt;br /&gt;
Once downloaded, go to the dwm directory&lt;br /&gt;
{{cmd|# cd dwm}}&lt;br /&gt;
To install, run:&lt;br /&gt;
{{cmd|# make clean install}}&lt;br /&gt;
Next, go up one directory level&lt;br /&gt;
{{cmd|# cd ..}}&lt;br /&gt;
to install dmenu:&lt;br /&gt;
{{cmd|# git clone https://git.suckless.org/dmenu&lt;br /&gt;
&amp;amp;#35; cd dmenu&lt;br /&gt;
&amp;amp;#35; make clean install}}&lt;br /&gt;
Finally, go up one more directory level&lt;br /&gt;
{{cmd|# cd ..}}&lt;br /&gt;
to install st:&lt;br /&gt;
{{cmd|# git clone https://git.suckless.org/st&lt;br /&gt;
&amp;amp;#35; cd st&lt;br /&gt;
&amp;amp;#35; make clean install}}&lt;br /&gt;
&lt;br /&gt;
== Setting up your profile ==&lt;br /&gt;
Change to your home directory:&lt;br /&gt;
{{cmd|$ cd ~}}&lt;br /&gt;
Create or edit {{Path|.xinitrc}} with at least the following:&lt;br /&gt;
{{cat|~/.xinitrc|exec dwm}}&lt;br /&gt;
Save the file and exit vi.&lt;br /&gt;
&lt;br /&gt;
Next, create or edit {{Path|.profile}} with at least the following:&lt;br /&gt;
{{cat|~/.profile|startx}}&lt;br /&gt;
&lt;br /&gt;
{{Note|If you install additional programs that call your `$SHELL` with the POSIX `-l` login flag, you&#039;ll need to make launching `startx` conditional, otherwise X will attempt to launch every time your shell is called with the login flag.&lt;br /&gt;
{{cat|~/.profile|if [ -z $DISPLAY ] &amp;amp;&amp;amp; [ $(tty) {{=}} /dev/tty1 ]; then&lt;br /&gt;
    startx&lt;br /&gt;
fi&lt;br /&gt;
}}&lt;br /&gt;
|gotchas}}&lt;br /&gt;
&lt;br /&gt;
Log out or reboot. dwm will run the next time you log in. &lt;br /&gt;
Press {{Key|Alt}}+{{Key|p}} to launch dmenu. Type firefox then press {{key|enter}}. Firefox will load and run in tile 9.&lt;br /&gt;
&lt;br /&gt;
= See Also =&lt;br /&gt;
* https://pkgs.alpinelinux.org/contents?file=dwm&lt;br /&gt;
* [https://wiki.gentoo.org/wiki/Dwm &amp;quot;dwm is only a single binary, and its source code is intended to never exceed 2000 SLOC. dwm is customized through editing its source code&amp;quot;]&lt;br /&gt;
* [[AwesomeWM]]&lt;br /&gt;
* [[Raspberry Pi 3 - Browser Client]] - A guide which omits dwm, but uses similar steps to install firefox in a diskless install on ARM. dwm is not used on the RPI3, due to tmpfs limitations.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [https://wiki.archlinux.org/title/Dwm Dwm - Archwiki]&lt;br /&gt;
&lt;br /&gt;
[[Category:Desktop]]&lt;br /&gt;
[[Category:Window Managers]]&lt;/div&gt;</summary>
		<author><name>Noste</name></author>
	</entry>
</feed>