aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2020-06-20 15:28:05 +0530
committerAkshay Nair <phenax5@gmail.com>2020-06-20 15:28:05 +0530
commitaa146c847d7e03881a99382100f1f61e473475c7 (patch)
tree7061d727e808e278457b00fa3623d2156dae10a4
parent353dab50ea72a4c9b013d0305939f241260c4839 (diff)
downloadshotkey-aa146c847d7e03881a99382100f1f61e473475c7.tar.gz
shotkey-aa146c847d7e03881a99382100f1f61e473475c7.zip
Renames project to shotkey
-rw-r--r--.gitignore2
-rw-r--r--Makefile24
-rw-r--r--README.md5
-rw-r--r--config.mk2
-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
diff --git a/.gitignore b/.gitignore
index 26ca78a..edd2a7d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
-hotkeythingy
+shotkey
*.o
diff --git a/Makefile b/Makefile
index 7c86960..be58030 100644
--- a/Makefile
+++ b/Makefile
@@ -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
diff --git a/README.md b/README.md
index cd2a22d..6912bb9 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/config.mk b/config.mk
index 1aab402..5ed880a 100644
--- a/config.mk
+++ b/config.mk
@@ -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);
}