Dwm: Difference between revisions
m (→Installing suckless tools dwm, dmenu, and st from source: Make the wiki markup in this section somewhat readable.) |
m (Added missing package in dwm dependencies) |
||
(One intermediate revision by one other user not shown) | |||
Line 28: | Line 28: | ||
The command to install the dependencies: | The command to install the dependencies: | ||
{{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}}}} | {{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}}}} | ||
=== Installing suckless tools dwm, dmenu, and st from source === | === Installing suckless tools dwm, dmenu, and st from source === | ||
Line 54: | Line 54: | ||
== Setting up your profile == | == Setting up your profile == | ||
Change to your home directory: | Change to your home directory: | ||
{{cmd|$ cd | {{cmd|$ cd ~}} | ||
Create {{Path|.xinitrc}} | Create or edit {{Path|.xinitrc}} with at least the following: | ||
{{cat|~/.xinitrc|exec dwm}} | {{cat|~/.xinitrc|exec dwm}} | ||
Save the file and exit vi. | Save the file and exit vi. | ||
Next, create {{Path|.profile}} | Next, create or edit {{Path|.profile}} with at least the following: | ||
{{cat|~/.profile|startx}} | {{cat|~/.profile|startx}} | ||
Line 74: | Line 70: | ||
Log out or reboot. dwm will run the next time you log in. | Log out or reboot. dwm will run the next time you log in. | ||
Press {{Key|Alt}}+{{Key|p}} to launch dmenu. Type firefox then press enter. Firefox will load and run in tile 9. | Press {{Key|Alt}}+{{Key|p}} to launch dmenu. Type firefox then press {{key|enter}}. Firefox will load and run in tile 9. | ||
= See Also = | = See Also = |
Latest revision as of 17:12, 25 April 2024
dwm is a dynamic window manager for X. It manages windows in tiled, monocle and floating layouts.
This guide covers:
- Installing dependencies for the suckless tools and installing firefox
- Installing from source or from repository dwm (dynamic window manager), dmenu (dynamic menu), st (simple terminal)
- Configuring the new profile to run dwm at login.
Prerequisites
- Install AlpineLinux
- Create a user account (optional but recommended)
- Enable the Community repository
- Install Xorg
Installing from binary repository
# apk add dwm dmenu st
This will install dwm, dmenu and st
Installing from source
Installing dependencies
dbus-x11 is needed for the dbus system (enables firefox running in dwm to open in a tile)
The last three adwaita-gtk2-theme adwaita-icon-theme font-dejavu are optional, but recommended for a nicer looking firefox.The command to install the dependencies:
# apk add git make gcc g++ libx11-dev libxft-dev libxinerama-dev ncurses dbus-x11 firefox-esr adwaita-gtk2-theme adwaita-icon-theme font-dejavu libxft-dev
Change to the /tmp directory.
$ cd /tmp
then execute:
# git clone https://git.suckless.org/dwm
Once downloaded, go to the dwm directory
# cd dwm
To install, run:
# make clean install
Next, go up one directory level
# cd ..
to install dmenu:
# git clone https://git.suckless.org/dmenu # cd dmenu # make clean install
Finally, go up one more directory level
# cd ..
to install st:
# git clone https://git.suckless.org/st # cd st # make clean install
Setting up your profile
Change to your home directory:
$ cd ~
Create or edit .xinitrc with at least the following:
Contents of ~/.xinitrc
Save the file and exit vi.
Next, create or edit .profile with at least the following:
Contents of ~/.profile
Contents of ~/.profile
Log out or reboot. dwm will run the next time you log in. Press Alt+p to launch dmenu. Type firefox then press enter. Firefox will load and run in tile 9.
See Also
- https://pkgs.alpinelinux.org/contents?file=dwm
- "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"
- AwesomeWM
- 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.