Skip to content
immki edited this page Nov 26, 2021 · 3 revisions

Cygwin Screenshot

A port to Windows/cygwin was created to make Windows useful for UNIX people. Following are the compilation and installation steps.

Compile spectrwm from the linux directory of the snapshot:

cd linux
make
Install spectrwm:
sudo make install

Download dmenu and patch config.mk with:

$ diff -uNp config.mk.old config.mk
--- config.mk.old       2010-01-11 16:23:55.503440600 -0600
+++ config.mk   2010-01-11 16:24:04.300315600 -0600
@@ -20,7 +20,7 @@ LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 

# flags
CPPFLAGS = -D_BSD_SOURCE -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
-CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
+CFLAGS = -Wall -Os ${INCS} ${CPPFLAGS}
LDFLAGS = -s ${LIBS}

# Solaris

Compile it:

make

Install dmenu:

sudo make install

To get Windows ALT key sequences (such as ALT+TAB) picked up by spectrwm, and let you use CTRL+ALT+Backspace to exit the X server, create a .xserverrc in the home dir of the user with the following line:

exec XWin :0 -nodecoration -unixkill -keyhook

Create a .xinitrc in the home dir of the user and add at least the following line:

exec /usr/local/bin/spectrwm

If the stupid menu bar in xterm angers you add the folowing line to ~/.Xdefaults

xterm.ToolBar:          false

This all results in spectrwm bliss!

Clone this wiki locally