diff --git a/.suckless/sselp/.gitignore b/.suckless/sselp/.gitignore deleted file mode 100644 index c190512..0000000 --- a/.suckless/sselp/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.backup diff --git a/.suckless/sselp/.hgtags b/.suckless/sselp/.hgtags deleted file mode 100644 index 07c9150..0000000 --- a/.suckless/sselp/.hgtags +++ /dev/null @@ -1,2 +0,0 @@ -effa85f232313bdd7855a83941d42e28ccaf8808 0.1 -5293716fdc7c4c31e2936ec52d684b403356e747 0.2 diff --git a/.suckless/sselp/LICENSE b/.suckless/sselp/LICENSE deleted file mode 100644 index faf1c09..0000000 --- a/.suckless/sselp/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT/X Consortium License - -© 2006-2008 Anselm R Garbe - -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. diff --git a/.suckless/sselp/Makefile b/.suckless/sselp/Makefile deleted file mode 100644 index bc23d57..0000000 --- a/.suckless/sselp/Makefile +++ /dev/null @@ -1,48 +0,0 @@ -# sselp - simple print selection - -include config.mk - -SRC = sselp.c -OBJ = ${SRC:.c=.o} - -all: options sselp - -options: - @echo sselp build options: - @echo "CFLAGS = ${CFLAGS}" - @echo "LDFLAGS = ${LDFLAGS}" - @echo "CC = ${CC}" - -.c.o: - @echo CC $< - @${CC} -c ${CFLAGS} $< - -${OBJ}: config.mk - -sselp: ${OBJ} - @echo CC -o $@ - @${CC} -o $@ ${OBJ} ${LDFLAGS} - -clean: - @echo cleaning - @rm -f sselp ${OBJ} sselp-${VERSION}.tar.gz - -dist: clean - @echo creating dist tarball - @mkdir -p sselp-${VERSION} - @cp -R LICENSE Makefile README config.mk ${SRC} sselp-${VERSION} - @tar -cf sselp-${VERSION}.tar sselp-${VERSION} - @gzip sselp-${VERSION}.tar - @rm -rf sselp-${VERSION} - -install: all - @echo installing executable file to ${DESTDIR}${PREFIX}/bin - @mkdir -p ${DESTDIR}${PREFIX}/bin - @cp -f sselp ${DESTDIR}${PREFIX}/bin - @chmod 755 ${DESTDIR}${PREFIX}/bin/sselp - -uninstall: - @echo removing executable file from ${DESTDIR}${PREFIX}/bin - @rm -f ${DESTDIR}${PREFIX}/bin/sselp - -.PHONY: all options clean dist install uninstall diff --git a/.suckless/sselp/README b/.suckless/sselp/README deleted file mode 100644 index f76ab9f..0000000 --- a/.suckless/sselp/README +++ /dev/null @@ -1,24 +0,0 @@ -sselp - simple print selection -============================== -Prints X selection to standard out. - - -Requirements ------------- -In order to build sselp you need the Xlib header files. - - -Installation ------------- -Edit config.mk to match your local setup (sselp is installed into -the /usr/local namespace by default). - -Afterwards enter the following command to build and install sselp -(if necessary as root): - - make clean install - - -Running sselp -------------- -Simply invoke the 'sselp' command. diff --git a/.suckless/sselp/config.mk b/.suckless/sselp/config.mk deleted file mode 100644 index 0731c35..0000000 --- a/.suckless/sselp/config.mk +++ /dev/null @@ -1,21 +0,0 @@ -# sselp version -VERSION = 0.2 - -# paths -PREFIX = /usr/local -MANPREFIX = ${PREFIX}/share/man - -X11INC = /usr/X11R6/include -X11LIB = /usr/X11R6/lib - -# includes and libs -INCS = -I. -I/usr/include -I${X11INC} -LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 - -# flags -CPPFLAGS = -DVERSION=\"${VERSION}\" -CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} -LDFLAGS = -s ${LIBS} - -# compiler and linker -CC = cc diff --git a/.suckless/sselp/sselp b/.suckless/sselp/sselp deleted file mode 100755 index cfae479..0000000 Binary files a/.suckless/sselp/sselp and /dev/null differ diff --git a/.suckless/sselp/sselp.c b/.suckless/sselp/sselp.c deleted file mode 100644 index 217c39a..0000000 --- a/.suckless/sselp/sselp.c +++ /dev/null @@ -1,44 +0,0 @@ -#include -#include -#include -#include - -int -main(int argc, char *argv[]) { - Atom clip, utf8, type; - Display *dpy; - Window win; - XEvent ev; - int fmt; - long off = 0; - unsigned char *data; - unsigned long len, more; - - if(argc > 1 && !strcmp(argv[1], "-v")) { - fputs("sselp-"VERSION", © 2006-2010 Anselm R Garbe\n", stdout); - return 0; - } - if(!(dpy = XOpenDisplay(NULL))) - return 1; - - utf8 = XInternAtom(dpy, "UTF8_STRING", False); - clip = XInternAtom(dpy, "_SSELP_STRING", False); - win = XCreateSimpleWindow(dpy, DefaultRootWindow(dpy), 0, 0, 1, 1, 0, - CopyFromParent, CopyFromParent); - XConvertSelection(dpy, XA_PRIMARY, utf8, clip, win, CurrentTime); - - XNextEvent(dpy, &ev); - if(ev.type == SelectionNotify && ev.xselection.property != None) { - do { - XGetWindowProperty(dpy, win, ev.xselection.property, off, BUFSIZ, - False, utf8, &type, &fmt, &len, &more, &data); - fwrite(data, 1, len, stdout); - XFree(data); - off += len/4; - } - while(more > 0); - putchar('\n'); - } - XCloseDisplay(dpy); - return 0; -} diff --git a/.suckless/sselp/sselp.o b/.suckless/sselp/sselp.o deleted file mode 100644 index 8a5efbb..0000000 Binary files a/.suckless/sselp/sselp.o and /dev/null differ