<?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=Phoebos</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=Phoebos"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Phoebos"/>
	<updated>2026-04-27T08:06:35Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Dwm&amp;diff=22128</id>
		<title>Dwm</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Dwm&amp;diff=22128"/>
		<updated>2022-07-25T19:12:51Z</updated>

		<summary type="html">&lt;p&gt;Phoebos: escape = character&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[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 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;
&lt;br /&gt;
&amp;lt;br&amp;gt;&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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installing dependencies ==&lt;br /&gt;
{{Note|&lt;br /&gt;
&#039;&#039;&#039;git make gcc g++ libx11-dev libxft-dev libxinerama-dev ncurses&#039;&#039;&#039; is 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 ttf-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 git make gcc g++ libx11-dev libxft-dev libxinerama-dev ncurses dbus-x11 firefox-esr adwaita-gtk2-theme adwaita-icon-theme ttf-dejavu}}&lt;br /&gt;
&lt;br /&gt;
== Installing suckless tools dwm, dmenu, and st from source ==&lt;br /&gt;
Change to the /tmp directory. {{cmd|$ cd /tmp}} then execute:&lt;br /&gt;
{{cmd|# git clone https://git.suckless.org/dwm}}&lt;br /&gt;
Once downloaded, go to the dwm directory {{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 {{cmd|# cd ..}} to install dmenu:&lt;br /&gt;
{{cmd|# git clone https://git.suckless.org/dmenu}}&lt;br /&gt;
{{cmd|# cd dmenu}}&lt;br /&gt;
{{cmd|# make clean install}}&lt;br /&gt;
Finally, go up one more directory level {{cmd|# cd ..}} to install st:&lt;br /&gt;
{{cmd|# git clone https://git.suckless.org/st}}&lt;br /&gt;
{{cmd|# cd st}}&lt;br /&gt;
{{cmd|# 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 /home/&amp;lt;yourusername&amp;gt;}}&lt;br /&gt;
Create .xinitrc:&lt;br /&gt;
{{cmd|$ vi .xinitrc}}&lt;br /&gt;
Add this line:&lt;br /&gt;
{{cat|~/.xinitrc|exec dwm}}&lt;br /&gt;
Save the file and exit vi.&lt;br /&gt;
&lt;br /&gt;
Next, create .profile.:&lt;br /&gt;
{{cmd|$ vi .profile}}&lt;br /&gt;
Add this line:&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 alt+p to launch dmenu. Type firefox then press 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;
[[Category:Desktop]]&lt;/div&gt;</summary>
		<author><name>Phoebos</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Dwm&amp;diff=22127</id>
		<title>Dwm</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Dwm&amp;diff=22127"/>
		<updated>2022-07-25T19:08:57Z</updated>

		<summary type="html">&lt;p&gt;Phoebos: /* Setting up your profile */ remove bash-specific syntax&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[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 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;
&lt;br /&gt;
&amp;lt;br&amp;gt;&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;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installing dependencies ==&lt;br /&gt;
{{Note|&lt;br /&gt;
&#039;&#039;&#039;git make gcc g++ libx11-dev libxft-dev libxinerama-dev ncurses&#039;&#039;&#039; is 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 ttf-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 git make gcc g++ libx11-dev libxft-dev libxinerama-dev ncurses dbus-x11 firefox-esr adwaita-gtk2-theme adwaita-icon-theme ttf-dejavu}}&lt;br /&gt;
&lt;br /&gt;
== Installing suckless tools dwm, dmenu, and st from source ==&lt;br /&gt;
Change to the /tmp directory. {{cmd|$ cd /tmp}} then execute:&lt;br /&gt;
{{cmd|# git clone https://git.suckless.org/dwm}}&lt;br /&gt;
Once downloaded, go to the dwm directory {{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 {{cmd|# cd ..}} to install dmenu:&lt;br /&gt;
{{cmd|# git clone https://git.suckless.org/dmenu}}&lt;br /&gt;
{{cmd|# cd dmenu}}&lt;br /&gt;
{{cmd|# make clean install}}&lt;br /&gt;
Finally, go up one more directory level {{cmd|# cd ..}} to install st:&lt;br /&gt;
{{cmd|# git clone https://git.suckless.org/st}}&lt;br /&gt;
{{cmd|# cd st}}&lt;br /&gt;
{{cmd|# 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 /home/&amp;lt;yourusername&amp;gt;}}&lt;br /&gt;
Create .xinitrc:&lt;br /&gt;
{{cmd|$ vi .xinitrc}}&lt;br /&gt;
Add this line:&lt;br /&gt;
{{cat|~/.xinitrc|exec dwm}}&lt;br /&gt;
Save the file and exit vi.&lt;br /&gt;
&lt;br /&gt;
Next, create .profile.:&lt;br /&gt;
{{cmd|$ vi .profile}}&lt;br /&gt;
Add this line:&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 alt+p to launch dmenu. Type firefox then press 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;
[[Category:Desktop]]&lt;/div&gt;</summary>
		<author><name>Phoebos</name></author>
	</entry>
</feed>