diff options
Diffstat (limited to '')
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | Makefile | 24 | ||||
| -rw-r--r-- | README.md | 5 | ||||
| -rw-r--r-- | config.mk | 2 | ||||
| -rw-r--r-- | shotkey.1 (renamed from hotkeythingy.1) | 10 | ||||
| -rw-r--r-- | shotkey.c (renamed from hotkeythingy.c) | 6 |
6 files changed, 25 insertions, 24 deletions
@@ -1,2 +1,2 @@ -hotkeythingy +shotkey *.o @@ -1,15 +1,15 @@ -# hotkeythingy - dynamic window manager +# shotkey - Suckless hot key daemon # See LICENSE file for copyright and license details. include config.mk -SRC = hotkeythingy.c +SRC = shotkey.c OBJ = ${SRC:.c=.o} -all: clean options hotkeythingy +all: clean options shotkey options: - @echo hotkeythingy build options: + @echo shotkey build options: @echo "CFLAGS = ${CFLAGS}" @echo "LDFLAGS = ${LDFLAGS}" @echo "CC = ${CC}" @@ -19,22 +19,22 @@ options: ${OBJ}: config.mk -hotkeythingy: ${OBJ} +shotkey: ${OBJ} ${CC} -o $@ ${OBJ} ${LDFLAGS} clean: - rm -f hotkeythingy ${OBJ} + rm -f shotkey ${OBJ} install: all mkdir -p ${DESTDIR}${PREFIX}/bin - cp -f hotkeythingy ${DESTDIR}${PREFIX}/bin - chmod 755 ${DESTDIR}${PREFIX}/bin/hotkeythingy + cp -f shotkey ${DESTDIR}${PREFIX}/bin + chmod 755 ${DESTDIR}${PREFIX}/bin/shotkey mkdir -p ${DESTDIR}${MANPREFIX}/man1 - sed "s/VERSION/${VERSION}/g" < hotkeythingy.1 > ${DESTDIR}${MANPREFIX}/man1/hotkeythingy.1 - chmod 644 ${DESTDIR}${MANPREFIX}/man1/hotkeythingy.1 + sed "s/VERSION/${VERSION}/g" < shotkey.1 > ${DESTDIR}${MANPREFIX}/man1/shotkey.1 + chmod 644 ${DESTDIR}${MANPREFIX}/man1/shotkey.1 uninstall: - rm -f ${DESTDIR}${PREFIX}/bin/hotkeythingy\ - ${DESTDIR}${MANPREFIX}/man1/hotkeythingy.1 + rm -f ${DESTDIR}${PREFIX}/bin/shotkey\ + ${DESTDIR}${MANPREFIX}/man1/shotkey.1 .PHONY: all options clean dist install uninstall @@ -1,5 +1,5 @@ -# HotKeyThingy -A suckless hot key daemon for X inspired by the suckless philosophy with configurable custom modes. +# SHotKey +A Suckless Hot Key daemon for X inspired by the suckless philosophy with configurable custom modes. ~200 LOC. ~20KB binary. @@ -12,6 +12,7 @@ sudo make install ## Configuring +Fork this repo and configure it to your likings. You can edit `config.h` to configure key bindings. * `shell` - Configure the shell used for executing the commands @@ -1,4 +1,4 @@ -# hotkeythingy version +# shotkey version VERSION = 0.1 # Customize below to fit your system diff --git a/hotkeythingy.1 b/shotkey.1 index 8185679..21659e6 100644 --- a/hotkeythingy.1 +++ b/shotkey.1 @@ -1,8 +1,8 @@ -.TH HOTKEYTHINGY 1 hotkeythingy\-VERSION +.TH SHOTKEY 1 shotkey\-VERSION .SH NAME -hotkeythingy \- A suckless hot key daemon for X inspired by the suckless philosophy with configurable custom modes. +shotkey \- A suckless hot key daemon for X inspired by the suckless philosophy with configurable custom modes. .SH SYNOPSIS -.B hotkeythingy +.B shotkey .SH DESCRIPTION A suckless hot key daemon for X inspired by the suckless philosophy with configurable custom modes @@ -91,12 +91,12 @@ This is the label assigned to a mode inside mode_properties .SH BUGS -Report issues to https://github.com/phenax/hotkeythingy/issues +Report issues to https://github.com/phenax/shotkey/issues .SH AUTHOR .MT phenax5@gmail.com Akshay Nair .ME .SH LINKS -.UR https://github.com/phenax/hotkeythingy +.UR https://github.com/phenax/shotkey Homepage .UE diff --git a/hotkeythingy.c b/shotkey.c index dcbcc08..d839ef4 100644 --- a/hotkeythingy.c +++ b/shotkey.c @@ -48,11 +48,11 @@ void unbind_key(Display *dpy, Window win, unsigned int mod, KeySym key) { int error_handler(Display *disp, XErrorEvent *xe) { switch(xe->error_code) { case BadAccess: - printf("hotkeythingy: [BadAccess] Cant grab key binding. Already grabbed\n"); + printf("shotkey: [BadAccess] Cant grab key binding. Already grabbed\n"); return 0; } - printf("hotkeythingy: Something went wrong\n"); + printf("shotkey: Something went wrong\n"); return 1; } @@ -60,7 +60,7 @@ void spawn(char** command) { if (fork() == 0) { setsid(); execve(command[0], command, environ); - fprintf(stderr, "hotkeythingy: execve %s", command[0]); + fprintf(stderr, "shotkey: execve %s", command[0]); perror(" failed"); exit(0); } |
