From patchwork Tue Nov 12 12:58:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Willenbrink X-Patchwork-Id: 70281 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BE64327BBEA; Tue, 12 Nov 2024 13:02:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4C2A227BBE2 for ; Tue, 12 Nov 2024 13:02:12 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tAqWn-0005AK-9A; Tue, 12 Nov 2024 08:01:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tAqW1-0004rz-Ts for guix-patches@gnu.org; Tue, 12 Nov 2024 08:01:06 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tAqW1-0002xY-JK for guix-patches@gnu.org; Tue, 12 Nov 2024 08:01:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=1KwzDSgPmeTVgF+g3IHIGU1XaMCBu5W5YXvqftmT2NY=; b=BVuFzY4tZF6M7PVdYhhdJ4BfUq5h/Aoc6/3nkUKDrcP27/Mhza67iX5qcOEoghfbFP3P3S0lQykrj5lyckscjT/ayOfkVEhBSrGaQURceX8GmrU6u2GFAe7Z0JBjo9wMAeE8x7DCCqnT9MX6fv6ioZ1aHsXjleSp+RAAJUCY7QhIUQXNtaZalOmqjGeSDtz+ZRxWjuwPh4JbE0BHbxvxRNPu/onx/4glc416o/os6UgpM5Rfki+aD+/UmOncPXHeoNPihbDydEXi24aibekUCZUUjljnWxrx1XKDIy4sjzAiRBgPieHKPYJmfD75En8HhyaHIYyHywX6tJhEwTqcaw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tAqVy-0006Id-2D; Tue, 12 Nov 2024 08:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#73647] [PATCH] gnu: Add indicator-sound-switcher. References: <1266383a76e3fe2cd6e05894e3c04b5b5fdc0242.1728154207.git.sebastian.willenbrink@gmail.com> In-Reply-To: <1266383a76e3fe2cd6e05894e3c04b5b5fdc0242.1728154207.git.sebastian.willenbrink@gmail.com> Resent-From: Sebastian Willenbrink Original-Sender: "Debbugs-submit" Resent-CC: sebastian.willenbrink@gmail.com, ngraves@gmx.com, ngraves@ngraves.fr, guix-patches@gnu.org Resent-Date: Tue, 12 Nov 2024 13:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73647 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73647@debbugs.gnu.org Cc: Sebastian Willenbrink , Sebastian Willenbrink , Nicolas Graves , Nicolas Graves X-Debbugs-Original-Xcc: Sebastian Willenbrink , Nicolas Graves , Nicolas Graves Received: via spool by 73647-submit@debbugs.gnu.org id=B73647.173141641524137 (code B ref 73647); Tue, 12 Nov 2024 13:01:01 +0000 Received: (at 73647) by debbugs.gnu.org; 12 Nov 2024 13:00:15 +0000 Received: from localhost ([127.0.0.1]:32848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAqVD-0006HD-6O for submit@debbugs.gnu.org; Tue, 12 Nov 2024 08:00:15 -0500 Received: from mail-ej1-f51.google.com ([209.85.218.51]:42326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAqVA-0006Bo-N5 for 73647@debbugs.gnu.org; Tue, 12 Nov 2024 08:00:13 -0500 Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a9e8522c10bso871404766b.1 for <73647@debbugs.gnu.org>; Tue, 12 Nov 2024 05:00:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731416347; x=1732021147; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1KwzDSgPmeTVgF+g3IHIGU1XaMCBu5W5YXvqftmT2NY=; b=TWyennlCmqS1DxKjcDQTyO6SCwpck5I3E4+yG5LU/h37Osutqahztxb1FaMufSWIyg QNlk8Q2MVbfP1qtRTgoe4cVtge5sX3v5Zb+tchiSi+TK4XgMXLs0HkezB0bRpfeGw+rd SfohDCULhy4PoI3IQUuzIQQ/64cq4huUuHobYjFK8hBbqXjiSlwKl4xIT4WvCWwijITH nct8kdDszemP1JeidkUwOkSeBWJZYzGYz2FHB/cIhRLFKa29yJZ54VRpQorzPAf6Mi1M aUF4Va8izExga1tzvwiwPqvT/J0fpVvHh4kYtxB6GXzIo7HG8GQBHTFREyDh05CCirL+ m1xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731416347; x=1732021147; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1KwzDSgPmeTVgF+g3IHIGU1XaMCBu5W5YXvqftmT2NY=; b=FhSKfQNGkM5CJl0ndaDNWhAsijCZ/8E8vf8WnbfwPrpRs+ysKPCEMF/kxZF3WgWQAo y+oCdC0zPBK8DNxTsDwEmX4zt2rqwobBR0TlknsEDAKL02englhfPxHahOVYEmKlVFif IZ4TW+412tnasATmsZVhjC6H6hPfZ8bt64mj6ahsq4BobMVFafs5hcgekTSPqvaBgz5J V03rUKZr3r+7ZkxqbsUXLFZUI3VpT/oc58XRJXFdtde+pY86osyNhDRgecmauT/kKLYm Vy6jj5BOhbncAyxEp9ffsnp+TYLaVd+bE5d2c0jzcNk9yT9gQoBbyBr9jCIt8tQ6D5nm P/sA== X-Gm-Message-State: AOJu0YyhqsGweQcQtLy6EDAdx/l6Rwk2RNznLGgyHpS7VVOJVNXInlRY axlElAA1aMOjAuZuyyNL5fgYFUhumcbGsQgLVlWCYKEu0h3zpF65NrIiPfrDvF0= X-Google-Smtp-Source: AGHT+IH2Eq0MZgDQdBhX6h74ED1LRXqQPpkGRxM2Gss7eSsYiu085V7yUNu/coSLCkKrb60MifzG1Q== X-Received: by 2002:a17:907:2688:b0:a9a:cea7:1294 with SMTP id a640c23a62f3a-a9eeca81d45mr1614723666b.21.1731416345740; Tue, 12 Nov 2024 04:59:05 -0800 (PST) Received: from framework-guix.fritz.box (ip5f5befc3.dynamic.kabel-deutschland.de. [95.91.239.195]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9ee0def4b5sm721578866b.146.2024.11.12.04.59.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2024 04:59:05 -0800 (PST) From: Sebastian Willenbrink Date: Tue, 12 Nov 2024 13:58:59 +0100 Message-ID: <81ee4883a6a714b32146e01c99270d16ae7d44ff.1731415143.git.sebastian.willenbrink@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/wm.scm (indicator-sound-switcher): New variable. Change-Id: I013091cca83fc96c47b5a7ebe5ccfc7db1354ff1 --- gnu/packages/wm.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) base-commit: 40625c213ad2007f70117518a7cc290d367e652a diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 836d4b6c04..61f8d4a310 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -112,6 +112,7 @@ (define-module (gnu packages wm) #:use-module (gnu packages) #:use-module (gnu packages bash) #:use-module (gnu packages admin) + #:use-module (gnu packages audio) #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages bison) @@ -3969,3 +3970,41 @@ (define-public wf-config configuration files of Wayifre. It can set key and mouse bindings, configure input, and customize Wayfire plugins.") (license license:expat))) + +(define-public indicator-sound-switcher + (package + (name "indicator-sound-switcher") + (version "2.3.10.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/yktoo/indicator-sound-switcher") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0y52k56ww2327r7ywwdvld5lx85qmcy8yrpaxc5lim7w3jbf3s85")))) + (build-system python-build-system) + (native-inputs (list gettext-minimal gobject-introspection)) + (inputs (list python-pygobject girara python-pulsectl pulseaudio)) + (propagated-inputs (list libappindicator keybinder)) + (arguments + (list + #:phases #~(modify-phases %standard-phases + (add-before 'install 'patch-xdg-autostart + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "setup.py" + (("/etc/xdg/autostart") + '"share/etc/xdg/autostart")) + (substitute* + "lib/indicator_sound_switcher/lib_pulseaudio.py" + (("libpulse.so.0") + (search-input-file inputs "/lib/libpulse.so.0")))))))) + (home-page "https://github.com/yktoo/indicator-sound-switcher") + (synopsis "Sound input/output selector indicator for Linux") + (description + "indicator-sound-switcher shows an icon in the indicator area or the system +tray (whatever is available in your desktop environment). The icon's menu allows +you to switch the current sound input and output (i.e. source ports and sink +ports in PulseAudio's terms, respectively) with just two clicks.") + (license license:gpl3)))