Installing ST, DMENU And DWM In Arch Linux - BunsenLabs Forums
Maybe your like
Hi again. Further to the instructions I posted here for installing i3-gaps in Arch, I recently came across this guide for installing dwm in Arch (or any Arch-related distro, such as Manjaro or Arch Labs) and thought I'd share it on here.
Before actually installing anything you should (obviously) update the database and the system:
sudo pacman -SyyuWhat follows is all written from the guide (David Sadler)'s viewpoint;
Continuing my Arch Linux installation I now have a user account for daily use. However this only provides me with a terminal. What I would like is a traditional multi-window desktop environment which will require me to install two things. A window system of some sort and a layout manager. For this installation I'm going with Xorg and dwm. For those that are not aware dwm is dynamic window manager for Xorg that has been developed by Suckless. Since by default dwm expects st to be installed as the system's terminal and also makes use dmenu to allow you to launch applications I will installed both of them in addition to dwm.
Install Dependencies
First off I need to install the dependencies required by st, dmenu and dwm. Since this is Arch Linux I use pacman to do this.
$ sudo pacman -S base-devel git libx11 libxft xorg-server xorg-xinit terminus-fontbase-devel: Since I will be installing from source this package contains various tools to compile software. git: Is needed to get the source code from the suckless git repositories.
libx11 and libxft: Dependancies required by dwm otherwise it will fail when trying to compile it.
xorg-server: Is the display server that provides the windows that dwm will manage. xorg-xinit: Allows us to start the display server.
terminus-font: Dwm is configured to use a monospaced font and since I installed a barebones system I need to install such a font now.
Download Git Repositories
The source code for the software is available from the Suckless git repositories so I simply clone them.
$ mkdir -p ~/.local/src $ git clone git://git.suckless.org/st ~/.local/src/st $ git clone git://git.suckless.org/dmenu ~/.local/src/dmenu $ git clone git://git.suckless.org/dwm ~/.local/src/dwmInstall ST
I install st by first moving to the directory created when cloning the repository.
$ cd ~/.local/src/stThen it's as simple as compiling and installing the software with the below commands.
$ make clean $ sudo make installConfigure and Install DMENU
Again move to the directory created earlier.
$ cd ~/.local/src/dmenuBefore compiling, a small edit needs to be made to the file config.mk.
$ nvim config.mkSince I have not installed Xinerama on this system I need to comment out any flags that reference this, otherwise dmenu will fail during the compiling.
# XINERAMALIBS = -lXinerama# XINERAMAFLAGS = -DXINERAMAAgain compiling and installing is done with the below commands.
$ make clean $ sudo make installConfigure and Install DWM
For the final time move to the directory created earlier.
$ cd ~/.local/src/dwmAs with dmenu the same edit needs to be made to the file config.mk.
$ nvim config.mk# XINERAMALIBS = -lXinerama# XINERAMAFLAGS = -DXINERAMACompile and install as usual.
[Note; if you want to change the auxiliary key from Alt to Win, a good idea in my view, you have to change the auxiliary key in the config.h (or config.def.h if there's no config.h) file from Alt;
#define MODKEY Mod1Maskto Win;
#define MODKEY Mod4Mask]
Then you can install;
$ make clean $ sudo make installStarting DWM
Since I have installed xorg-xinit I need to create a .xinitrc in my home folder.
$ nvim ~/.xinitrcThe contents of this file is just.
exec dwmI can now start xorg and dwm with the below command.
$ startxdavidtsadler.com
Last edited by Colonel Panic (2021-05-06 00:06:15)
Tag » Arch Install I3 Dmenu
-
Install And Use I3wm (arch Update) | By Miguel Sampaio Da Veiga
-
I3 - ArchWiki
-
I3-dmenu-desktop(1) - Arch Manual Pages
-
I3-dmenu-desktop - Command-not
-
I3 Partially Working On A New Install Of Arch : R/i3wm - Reddit
-
9 Important Things To Do After Installing I3wm - MakeUseOf
-
Dmenu Not Launching On 'Mod + D' - I3 Wm | Arch Linux. - YouTube
-
I3 — ArchwikiFR - Le Wiki Arch Linux
-
Installation Of I3 On Arch Linux Phase 4 - ArcoLinuxD
-
I3wm 4.19 Hiện đã Có Sẵn Và đây Là Những Thay đổi Quan Trọng Nhất ...
-
Configuring The I3 Window Manager - Jason Eckert
-
How To Install Or Uninstall "i3-wm" On Manjaro ?
-
Arch Linux - Lightweight Custom Environment Setup - XDA Forums