Installing BSPWM on Arch

by Equinox

Former Lewd.SX Owner
Posts: 483
Threads: 48
Joined: Jul 2014
Reputation: 8
08-31-2015, 02:21 AM (This post was last modified: 04-22-2016, 02:55 AM by Equinox.)
#16548 (1)

Well, to help someone here, I've decided to write a tutorial on installing and configuring BSPWM on Arch linux. This assumes you have X11 installed, as I'm not sure if this would work with Wayland.

First command we'll be running is installing some essentials.

$ pacman -S bspwm sxhkd

Once both of these are installed, you can also install a terminal of your choice. Or terminal emulator, rather. Some like gnome-terminal, others like xfce4-terminal, but you can use what you would like. Even xterm, if you're into that for whatever god foresaken reason. Because I'm a lazy fuck, I'll use xfce4-terminal as an example.

$ pacman -S xfce4-terminal

If you don't have a .config directory already, you're dumb and should make one. Also, make sure you aren't logged into root, you may need to use sudo on these commands, however. We will also be getting the config files from the Github as well.

$ mkdir ~/.config
$ cd ~/.config
$ mkdir bspwm
$ mkdir sxhkd
$ cd bspwm
$ wget
$ cd ..
$ cd sxhkd
$ wget
$ cd ~

Great, you've made progress. When you first install BSPWM, it will just be a black screen. To fix this, start your terminal from xinitrc. Your .xinitrc file should look like as follows:

if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for f in /etc/X11/xinit/xinitrc.d/?* ; do
        [ -x "$f" ] && . "$f"
    unset f

sxhkd &
xfce4-terminal &
exec bspwm

Save and exit. You can use nano or vi/m. Or something completely unrelated. Doesn't matter what. Now that you've installed and done basic configuration of it, you can now run it. If X11 isn't already running, execute it with following command. If it is, restart or logout and back in.

$ startx

Configuration is simple. Nano or vi/m into the config files if need be, the syntax is really easy. Under the basic configuration for bspwm will be the start up. Other applications such as Nitrogen (for wallpapers), compositors, etc. can be added if needed. The sxhkd configuration is really easy as well, BUUUT if you really need help, feel free to reply below, and be specific with what you're trying to do/what error is given.

I should mention, I know zsh isn't a terminal emulator, but couldn't find a word to describe it.
I don't know how high I was when I first wrote this, but for some reason I used and referred to zsh as a terminal emulator (for the record, it's a shell).

"The entire internet is located here, on a single CD-ROM!"
Part of the glorious Linux master race.

[Image: 687474703a2f2f7075752e73682f69534f65312f...362e706e67]
[Image: 68747470733a2f2f692e696d6775722e636f6d2f...412e6a7067]
[+] 2 users love Equinox's post
the nigga ya love to hate
Posts: 746
Threads: 40
Joined: Jul 2015
08-31-2015, 02:27 AM
#16549 (2)
thanks for this tutorial, fam