* [bug#29234] nxbelld - an X11 bell daemon
@ 2017-11-09 19:50 Marek Benc
2017-11-09 22:46 ` bug#29234: " Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Marek Benc @ 2017-11-09 19:50 UTC (permalink / raw)
To: 29234
[-- Attachment #1: Type: text/plain, Size: 336 bytes --]
Hello, Guix!
I thought some of you might find this little utility useful, I use it on
most of my computers; it's a program that can perform various actions
when the X11 bell is rung, the most obvious being playing a beep, either
generated or from a .wav file, or it can execute a command.
https://github.com/dusxmt/nxbelld
--
Marek
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-nxbelld.patch --]
[-- Type: text/x-patch; name="0001-gnu-Add-nxbelld.patch", Size: 2762 bytes --]
From a75c5c23d6d3c2ac19de777e4c02a119845b59e3 Mon Sep 17 00:00:00 2001
From: Marek Benc <dusxmt@gmx.com>
Date: Thu, 9 Nov 2017 20:36:31 +0100
Subject: [PATCH] gnu: Add nxbelld.
---
gnu/packages/xdisorg.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 78d0909..0c8795f 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -19,6 +19,7 @@
;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com>
;;; Copyright © 2017 ng0 <contact.ng0@cryptolab.net>
;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2017 Marek Benc <dusxmt@gmx.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1291,3 +1292,40 @@ drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
invert colors on a specific display/screen.")
(home-page "http://xcalib.sourceforge.net/")
(license license:gpl2)))
+
+(define-public nxbelld
+ (package
+ (name "nxbelld")
+ (version "0.1.2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dusxmt/nxbelld.git")
+ (commit "3091ca3f3e86810f8f8c3b3e4ee8c2fd470ed30d")))
+
+ (sha256
+ (base32
+ "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))))
+ (build-system gnu-build-system)
+ (arguments '(#:configure-flags `("--enable-sound"
+ "--enable-wave"
+ "--enable-alsa")
+ #:phases (modify-phases %standard-phases
+ (add-before 'configure 'autoreconf
+ (lambda _
+ (zero? (system* "autoreconf" "-vfi")))))))
+ (native-inputs `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("pkg-config" ,pkg-config)
+ ("perl" ,perl)))
+ (inputs `(("libx11" ,libx11)
+ ("alsa-lib" ,alsa-lib)))
+ (synopsis "Daemon that performs an action every time the X11 bell is rung")
+ (description "nxbelld is a tiny utility to aid people who either don't
+like the default PC speaker beep, or use a sound driver that doesn't have
+support for the PC speaker. The utility performs a given action every time
+the X bell is rung. The actions nxbelld can currently perform include running
+a specified program, emulating the PC speaker beep using the sound card
+(default), or playing a PCM encoded WAVE file.")
+ (home-page "https://github.com/dusxmt/nxbelld")
+ (license license:gpl3)))
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#29234: nxbelld - an X11 bell daemon
2017-11-09 19:50 [bug#29234] nxbelld - an X11 bell daemon Marek Benc
@ 2017-11-09 22:46 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2017-11-09 22:46 UTC (permalink / raw)
To: Marek Benc; +Cc: 29234-done
[-- Attachment #1: Type: text/plain, Size: 529 bytes --]
Hi Marek!
Marek Benc <dusxmt@gmx.com> skribis:
> Hello, Guix!
>
> I thought some of you might find this little utility useful, I use it on
> most of my computers; it's a program that can perform various actions
> when the X11 bell is rung, the most obvious being playing a beep, either
> generated or from a .wav file, or it can execute a command.
>
> https://github.com/dusxmt/nxbelld
Nice! I committed it with the tiny changes below (I hope that’s fine),
and with a commit log.
Thank you!
Ludo’.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1545 bytes --]
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 0c8795fe7..f4c03c144 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -1301,11 +1301,11 @@ invert colors on a specific display/screen.")
(method git-fetch)
(uri (git-reference
(url "https://github.com/dusxmt/nxbelld.git")
- (commit "3091ca3f3e86810f8f8c3b3e4ee8c2fd470ed30d")))
-
+ (commit version)))
(sha256
(base32
- "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))))
+ "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))
+ (file-name (git-file-name name version))))
(build-system gnu-build-system)
(arguments '(#:configure-flags `("--enable-sound"
"--enable-wave"
@@ -1325,7 +1325,7 @@ invert colors on a specific display/screen.")
like the default PC speaker beep, or use a sound driver that doesn't have
support for the PC speaker. The utility performs a given action every time
the X bell is rung. The actions nxbelld can currently perform include running
-a specified program, emulating the PC speaker beep using the sound card
-(default), or playing a PCM encoded WAVE file.")
+a specified program, emulating the PC speaker beep using the sound card (default),
+or playing a PCM encoded WAVE file.")
(home-page "https://github.com/dusxmt/nxbelld")
- (license license:gpl3)))
+ (license license:gpl3+)))
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-11-09 22:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-09 19:50 [bug#29234] nxbelld - an X11 bell daemon Marek Benc
2017-11-09 22:46 ` bug#29234: " Ludovic Courtès
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).