Skip to content
James edited this page Jul 16, 2017 · 7 revisions

Bspwm

Getting Started

If you're using Arch Linux, install bspwm-git from AUR for the latest version or bspwm for the latest stable version, as well as sxhkd-git or sxhkd.

From Source

This guide will install both bspwm and sxhkd as they go hand-in-hand.

Dependencies

  • Arch Linux: $ sudo pacman -S libxcb xcb-util xcb-util-wm xcb-util-keysyms
  • Ubuntu/Debian: $ sudo apt-get install libxcb-xinerama0-dev libxcb-icccm4-dev libxcb-randr0-dev libxcb-util0-dev libxcb-ewmh-dev libxcb-keysyms1-dev

Building and Installing

$ git clone https://github.com/baskerville/bspwm.git
$ git clone https://github.com/baskerville/sxhkd.git
$ cd bspwm && make && sudo make install
$ cd ../sxhkd && make && sudo make install

Uninstalling

$ cd bspwm && sudo make uninstall
$ cd ../sxhkd && sudo make uninstall

Running bspwm

You'll need to copy the example configurations to your ~/.config folder. Ensure ~/.config/bspwm/bspwmrc is executable.

$ mkdir -p ~/.config/{bspwm,sxhkd}
$ cp /usr/local/share/doc/bspwm/examples/bspwmrc ~/.config/bspwm/
$ cp /usr/local/share/doc/bspwm/examples/sxhkdrc ~/.config/sxhkd/
$ chmod u+x ~/.config/bspwm/bspwmrc

To start bspwm at login add exec bspwm to the bottom of your ~/.xinitrc or ~/.xprofile (depending on how your launch your X/Display manager). The example bspwmrc launches sxhkd for you.

Clone this wiki locally