summaryrefslogtreecommitdiffstats
path: root/wm-addons
diff options
context:
space:
mode:
authorVlad Glagolev2022-07-13 22:12:41 +0000
committerVlad Glagolev2022-07-13 22:12:41 +0000
commit3b014494971f4979cf17a7c16abfc764153f4fce (patch)
tree3ab028a566d6dfb0efe7e98a09ee58bfe7c3e396 /wm-addons
parent053d5f4e1124cd2a86a5867310d83e45416ad53d (diff)
xqp: new spell, X Query pointer
Diffstat (limited to 'wm-addons')
-rwxr-xr-xwm-addons/xqp/BUILD1
-rwxr-xr-xwm-addons/xqp/DEPENDS1
-rwxr-xr-xwm-addons/xqp/DETAILS15
-rw-r--r--wm-addons/xqp/HISTORY3
-rwxr-xr-xwm-addons/xqp/INSTALL1
-rwxr-xr-xwm-addons/xqp/PRE_BUILD4
-rw-r--r--wm-addons/xqp/uppercase.patch23
7 files changed, 48 insertions, 0 deletions
diff --git a/wm-addons/xqp/BUILD b/wm-addons/xqp/BUILD
new file mode 100755
index 0000000000..8f58e6df93
--- /dev/null
+++ b/wm-addons/xqp/BUILD
@@ -0,0 +1 @@
+make
diff --git a/wm-addons/xqp/DEPENDS b/wm-addons/xqp/DEPENDS
new file mode 100755
index 0000000000..3b59cabe13
--- /dev/null
+++ b/wm-addons/xqp/DEPENDS
@@ -0,0 +1 @@
+depends libxcb
diff --git a/wm-addons/xqp/DETAILS b/wm-addons/xqp/DETAILS
new file mode 100755
index 0000000000..75eee871a5
--- /dev/null
+++ b/wm-addons/xqp/DETAILS
@@ -0,0 +1,15 @@
+ SPELL=xqp
+ VERSION=0.1
+ SOURCE=${SPELL}-${VERSION}.tar.gz
+ SOURCE_URL[0]=https://github.com/baskerville/${SPELL}/archive/${VERSION}.tar.gz
+ SOURCE_HASH=sha512:8cf6753ae6eeb968a877b583bdf7245d3160bb2f2ce9fd86bd9f77652bca00cf1620395b3e3acef3a7ee96de3dcb6261c221370d7fc66d164857d638ff63e496
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ DOC_DIRS=""
+ WEB_SITE=https://github.com/baskerville/xqp
+ LICENSE[0]=UNLICENSE
+ ENTERED=20220713
+ SHORT="X Query pointer"
+cat << EOF
+xqp (X Query Pointer) is an X.Org utility that prints the ID of the window
+under the pointer.
+EOF
diff --git a/wm-addons/xqp/HISTORY b/wm-addons/xqp/HISTORY
new file mode 100644
index 0000000000..d7ffb9fca6
--- /dev/null
+++ b/wm-addons/xqp/HISTORY
@@ -0,0 +1,3 @@
+2022-07-13 Vlad Glagolev <stealth@sourcemage.org>
+ * DEPENDS, DETAILS, {PRE_,}BUILD, INSTALL, uppercase.patch: created
+ spell, version 0.1
diff --git a/wm-addons/xqp/INSTALL b/wm-addons/xqp/INSTALL
new file mode 100755
index 0000000000..e72b41d353
--- /dev/null
+++ b/wm-addons/xqp/INSTALL
@@ -0,0 +1 @@
+make PREFIX="${INSTALL_ROOT}/usr" install
diff --git a/wm-addons/xqp/PRE_BUILD b/wm-addons/xqp/PRE_BUILD
new file mode 100755
index 0000000000..e236a698dd
--- /dev/null
+++ b/wm-addons/xqp/PRE_BUILD
@@ -0,0 +1,4 @@
+default_pre_build &&
+cd "${SOURCE_DIRECTORY}" &&
+
+patch -p1 < "${SPELL_DIRECTORY}/uppercase.patch"
diff --git a/wm-addons/xqp/uppercase.patch b/wm-addons/xqp/uppercase.patch
new file mode 100644
index 0000000000..f9e70ecd16
--- /dev/null
+++ b/wm-addons/xqp/uppercase.patch
@@ -0,0 +1,23 @@
+From 3f8a54d95b72f37d0458d7d6a69ea6a90baad751 Mon Sep 17 00:00:00 2001
+From: Emanuele Torre <torreemanuele6@gmail.com>
+Date: Fri, 1 May 2020 03:24:25 +0200
+Subject: [PATCH] Print X window IDs in uppercase for consistency with BSPWM,
+ xlsw & xdo
+
+---
+ xqp.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/xqp.c b/xqp.c
+index 48315c5..be97917 100644
+--- a/xqp.c
++++ b/xqp.c
+@@ -50,7 +50,7 @@ int main(int argc, char *argv[])
+ }
+ }
+ } else {
+- printf("0x%08x\n", qpr->child);
++ printf("0x%08X\n", qpr->child);
+ }
+ } else {
+ ret = EXIT_FAILURE;