Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sowm
sowm.o
config.h
.ccls-cache
src/*.o
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2019-2020 Dylan Araps

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
33 changes: 0 additions & 33 deletions LICENSE.md

This file was deleted.

36 changes: 22 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
CFLAGS += -std=c99 -Wall -Wextra -pedantic -Wold-style-declaration
CFLAGS += -Wmissing-prototypes -Wno-unused-parameter
PREFIX ?= /usr
BINDIR ?= $(PREFIX)/bin
CC ?= gcc
.POSIX:

all: sowm
PREFIX = /usr/local

config.h:
cp config.def.h config.h
ALL_WARN = -Wall -Wextra -pedantic -Wmissing-prototypes -Wstrict-prototypes
ALL_CFLAGS = $(CFLAGS) $(CPPFLAGS) -std=c99 $(ALL_WARN)
ALL_LDFLAGS = $(LDFLAGS) $(LIBS) -lxcb

sowm: sowm.c sowm.h config.h Makefile
$(CC) -O3 $(CFLAGS) -o $@ $< -lX11 $(LDFLAGS)
CC = cc

install: all
install -Dm755 sowm $(DESTDIR)$(BINDIR)/sowm
OBJ = src/event.o src/sowm.o
HDR = src/event.h src/globals.h

.c.o:
$(CC) $(ALL_CFLAGS) -c -o $@ $<

sowm: $(OBJ)
$(CC) $(ALL_CFLAGS) -o $@ $(OBJ) $(ALL_LDFLAGS)

$(OBJ): $(HDR)

install: sowm
mkdir -p $(DESTDIR)/bin
cp sowm $(DESTDIR)/bin/sowm

uninstall:
rm -f $(DESTDIR)$(BINDIR)/sowm
rm -f $(DESTDIR)/bin/sowm

clean:
rm -f sowm *.o

.PHONY: all install uninstall clean
.PHONY: install uninstall clean
3 changes: 3 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SOWM (Simple Opinionated Window Manager)
________________________________________________________________________________

98 changes: 0 additions & 98 deletions README.md

This file was deleted.

49 changes: 0 additions & 49 deletions config.def.h

This file was deleted.

4 changes: 4 additions & 0 deletions design.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
keybindings
events
actions
manager
Loading