Skip to main content

Installing BSPWM

Install and customize a Tile-type window manager called BSPWM.

Install and Configurations

Graphics Driver

Install graphics driver.

sudo pacman -S xf86-video-intel

BSPWM

Install display server, bspwm and etc.

sudo pacman -S xorg xorg-xinit bspwm picom dmenu sxhkd nitrogen arandr

Install a terminal emulator and a browser.

sudo pacman -S alacritty firefox

Create a config file. sxhkd is a daemon for using hotkeys.

mkdir .config/bspwm
mkdir .config/sxhkd
cp /usr/share/doc/bspwm/examples/bspwmrc .config/bspwm/
cp /usr/share/doc/bspwm/examples/sxhkdrc .config/sxhkd/

Configure Super + Return to run alacritty as a terminal emulator.

vim /.config/sxhkd/sxhkdrc
super + Return
- urxvt
+ alacritty

Modify .xinitrc and set it to run bspwm, etc.

cp /etc/X11/xinit/xinitrc .xinitrc
vim .xinitrc
- twm &
- xclock -geometry 50x50-1+1 &
- xterm -geometry 80x50+494+51 &
- xterm -geometry 80x20+494+0 &
- exec xterm -geometry 80x66+0+0 -name login
+ setxkbmap jp &
+ picom -f &
+ exec bspwm

picom is used for graphic settings.

sudo vim /etc/xdg/picom.conf
- vsync = true;
+ #vsync = true;

Start window manager.

startx

Customize

Change the resolution

arandr  # choose resolution and save as a shell script
chmod +x .screenlayout/dislay.sh
vim .xinitrc
setkbmap ch &
+ $HOME/.screenlayout/display.sh
picom -f &

Quit bspwm (super + alt + q) and restart the window manager.

startx

Change cursor theme.

vim .xinitrc
setkbmap ch &
$HOME/.screenlayout/display.sh
+ xsetroot -cursor_name left_ptr
picom -f &

Change the desktop background (Preferences > Add > Pictures > OK > Apply) and modify xinitrc to start nitrogen.

vim .xinitrc
+ setkbmap ch &
+ $HOME/.screenlayout/display.sh
+ nitrogen --restore &
+ xsetroot -cursor_name left_ptr
+ picom -f &