aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-02-22 14:23:09 +0100
committerMattias Andrée <m@maandree.se>2026-02-22 14:23:09 +0100
commit5d331ca804c730065a9e82dd262f634fed5b84fb (patch)
tree4d7dab20a8d6cad74a56c613306ac7161e351634
parentUpdate e-mail (diff)
downloadxkbdbind-master.tar.gz
xkbdbind-master.tar.bz2
xkbdbind-master.tar.xz
m fixesHEADmaster
Signed-off-by: Mattias Andrée <m@maandree.se>
-rw-r--r--Makefile8
-rw-r--r--README4
-rw-r--r--config.h4
-rw-r--r--config.mk4
-rw-r--r--xkbdbind.14
5 files changed, 12 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 018f97c..e55ed9d 100644
--- a/Makefile
+++ b/Makefile
@@ -13,12 +13,12 @@ xkbdbind: $(OBJ) $(HDR)
$(CC) -o $@ $(OBJ) $(LDFLAGS)
.c.o:
- $(CC) -c -o $@ $< $(CFLAGS)
+ $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)
install: xkbdbind
- mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
- mkdir -p -- "$(DESTDIR)$(PREFIX)/src/$(PACKAGE)"
- mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1"
+ mkdir -p -- "$(DESTDIR)$(PREFIX)/bin/"
+ mkdir -p -- "$(DESTDIR)$(PREFIX)/src/$(PACKAGE)/"
+ mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/"
cp -- xkbdbind "$(DESTDIR)$(PREFIX)/bin/"
cp -- $(OBJ:.o=.c) $(HDR) Makefile "$(DESTDIR)$(PREFIX)/src/$(PACKAGE)/"
test ! -e -- "$(DESTDIR)$(PREFIX)/src/$(PACKAGE)/config.mk"
diff --git a/README b/README
index bdbcfb7..86c4117 100644
--- a/README
+++ b/README
@@ -8,7 +8,7 @@ DESCRIPTION
xkbdbind lets the user configure keybindings to start
programs.
- xkbdbind is a configured by the user by editing the
+ xkbdbind is configured by the user by editing the
config.h source file and recompiling the program. The
user shall therefore have a local copy of the software,
and a personal installation of it. Thus, xkbdbind is
@@ -17,4 +17,4 @@ DESCRIPTION
Download xkbdbind to ~/.local/src/xkbdbind, run make(1)
in ~/.local/src/xkbdbind, link ~/.local/bin/xkbdbind to
~/.local/src/xkbdbind/xkbdbind, and add ~/.local/bin to
- PATthe H environment variable if you haven't already.
+ the PATH environment variable if you haven't already.
diff --git a/config.h b/config.h
index 55a3e2f..971ad69 100644
--- a/config.h
+++ b/config.h
@@ -3,10 +3,10 @@
/* Column 1: Key to press (definitions are available in /usr/include/X11/keysymdef.h)
*
- * Column 2: Modifies to combine with the keypress
+ * Column 2: Modifiers to combine with the keypress
* (OR of MOD_SHIFT, MOD_CTRL, MOD_ALT, MOD_HYPER, MOD_SUPER, MOD_ALTGR)
*
- * Column 3: Non-zero if the command shall be spawn repeatedly if the key is held down
+ * Column 3: Non-zero if the command shall be spawned repeatedly if the key is held down
*
* Column 4: The command to spawn. Each argument shall be its own string, there is
* no shell syntax, and all arguments shall be wrapped in a CMD, e.g.
diff --git a/config.mk b/config.mk
index e8e1344..3f44ddb 100644
--- a/config.mk
+++ b/config.mk
@@ -1,4 +1,4 @@
-PREFIX = /usr
+PREFIX = /usr
MANPREFIX = $(PREFIX)/share/man
PACKAGE = xkbdbind
@@ -6,5 +6,5 @@ PACKAGE = xkbdbind
CC = c99
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700
-CFLAGS = -Wall -O2 $(CPPFLAGS)
+CFLAGS =
LDFLAGS = -lxcb -lxcb-keysyms
diff --git a/xkbdbind.1 b/xkbdbind.1
index 1694789..84331d3 100644
--- a/xkbdbind.1
+++ b/xkbdbind.1
@@ -1,4 +1,4 @@
-.TH XKBDBIND 1 xkbdbind
+.TH XKBDBIND 1 XKBDBIND
.SH NAME
xkbdbind - global hotkeys for X
.SH SYNOPSIS
@@ -7,7 +7,7 @@ xkbdbind - global hotkeys for X
.B xkbdbind
lets the user configure keybindings to start programs.
.PP
-xkbdbind is a configured by the user by editing the
+xkbdbind is configured by the user by editing the
.I config.h
source file and recompiling the program. The user shall
therefore have a local copy of the software, and a personal