unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: elaexuotee--- via Guix-patches via <guix-patches@gnu.org>
To: 44790@debbugs.gnu.org
Subject: [bug#44790] gnu: Add xtitle.
Date: Sun, 22 Nov 2020 16:08:34 +0900	[thread overview]
Message-ID: <FTAFF969A0.2D1CNUE377A0P@wilsonb.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 167 bytes --]

This is a nice little CLI tool that outputs X window titles. It's the only tool
I've found that can asyncronously output window titles and they change or
update.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-xtitle.patch --]
[-- Type: text/x-patch, Size: 2313 bytes --]

From c64251797b805aa119f687bcb3064def4df00908 Mon Sep 17 00:00:00 2001
From: "B. Wilson" <elaexuotee@wilsonb.com>
Date: Sun, 22 Nov 2020 16:02:13 +0900
Subject: [PATCH] gnu: Add xtitle.
To: guix-patches@gnu.org

gnu/packages/xdisorg.scm(xtitle): New variable.
---
 gnu/packages/xdisorg.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 430b5ac770..a59b6e3358 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -41,6 +41,7 @@
 ;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
 ;;; Copyright © 2020 Gabriel Arazas <foo.dogsquared@gmail.com>
 ;;; Copyright © 2020 James Smith <jsubuntuxp@disroot.org>
+;;; Copyright © 2020 B. Wilson <elaexuotee@wilsonb.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -110,6 +111,38 @@
 
 ;; packages outside the x.org system proper
 
+(define-public xtitle
+  (package
+    (name "xtitle")
+    (version "0.4.4")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/baskerville/xtitle")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0f5070k2bwarghl1vq886pl52xck1x5p7x3qhlfchsc2y3dcqms9"))))
+    (build-system gnu-build-system)
+    (inputs `(("libxcb" ,libxcb)
+              ("xcb-util-wm" ,xcb-util-wm)
+              ("xcb-util" ,xcb-util)))
+    (arguments
+     `(#:tests? #f                      ;no test suite
+       #:make-flags
+       (list
+        (string-append "CC=" ,(cc-for-target))
+        (string-append "PREFIX=" %output))
+       #:phases (modify-phases %standard-phases (delete 'configure))))
+    (home-page "https://github.com/baskerville/xtitle")
+    (synopsis "Output X window titles")
+    (description "If arguments are given, @code{xtitle} outputs the title of
+ each specified window, otherwise it outputs the title of the active window.
+ With @emph{snoop} mode on, it continuously monitors the specified windows and
+ outputs when titles change.")
+    (license license:unlicense)))
+
 (define-public arandr
   (package
     (name "arandr")
-- 
2.29.2


             reply	other threads:[~2020-11-22  7:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-22  7:08 elaexuotee--- via Guix-patches via [this message]
2020-11-24 12:49 ` [bug#44790] gnu: Add xtitle Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FTAFF969A0.2D1CNUE377A0P@wilsonb.com \
    --to=guix-patches@gnu.org \
    --cc=44790@debbugs.gnu.org \
    --cc=elaexuotee@wilsonb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).