UNAME=$(shell uname)
DEBUG=1
INSTALL=install
+MAKE=make
CFLAGS += -std=c99
CFLAGS += -pipe
all: ${FILES}
$(CC) -o i3 ${FILES} $(LDFLAGS)
+ $(MAKE) -C src/i3lock
+ $(MAKE) -C src/i3menu
install: all
$(INSTALL) -d -m 0755 $(DESTDIR)/usr/bin
$(INSTALL) -d -m 0755 $(DESTDIR)/etc/i3
$(INSTALL) -m 0755 i3 $(DESTDIR)/usr/bin/
test -e $(DESTDIR)/etc/i3/config || $(INSTALL) -m 0644 i3.config $(DESTDIR)/etc/i3/config
+ $(MAKE) -C src/i3lock install
+ $(MAKE) -C src/i3menu install
clean:
rm -f src/*.o
# Mod1+Enter starts a new terminal
bind Mod1+36 exec /usr/bin/urxvt
+# Mod1+p starts dmenu and launches the selected application
+# for now, we don’t have an own launcher
+bind Mod1+55 exec /usr/local/bin/dmenu_run
+
# Mod1+Shift+r restarts i3 inplace
bind Mod1+Shift+27 restart