From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4J73LhroAWd8CQEA62LTzQ:P1 (envelope-from ) for ; Sun, 06 Oct 2024 01:30:02 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 4J73LhroAWd8CQEA62LTzQ (envelope-from ) for ; Sun, 06 Oct 2024 03:30:02 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=XskGOw6d; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="ST/DPDpc"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728178202; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=e4ImNhL0T/GSdvsZEsxYNwm1npEcHjvvEnw1jkkQ4TU=; b=of0hI7mm3NVnQul8d9aC16EHXtBuN89BantzBZ2cWMDWPEV4oYJw4wkSOYQLFc6kcwiRhB Idvjf2FwBavSxOUsENfRPhYD4TxMaS+Vi67YvMY5eHuF5zSKL1NHTy8hSznjAvTGNsKXzF utCSAVNqEJh8tznoMOw0tQq9uO1w+HWZRMljgeBjo2qxFhh+cMzEFpbh5ReaViSNhT4ADT iJwUqJS792SXDjpHExdhrqV7uDvoWPICQxfeezRTTdFok9N8HIhqg08P5MPqrKBdCJNJW7 Ldxcd831j9xPVv3x01Q9LMFhdBXM+JfghfHty0syfvd+7RI/497DuR8lw2sNTg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=XskGOw6d; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="ST/DPDpc"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1728178202; a=rsa-sha256; cv=none; b=FaO4PAMSdVeA+kmY0JMHs04VWhswV/Z8FTLHVSNVZ51Frano48NDP6KzQzIiB2q/EXgQ4D 8hiGtiO/r9Ew7FNgDgtYMydXGVqfo0x/AGLSFrQQPV90NsRrkUNrYRrlIf+OSfP1jd5e6T e2A65gt0KIVcVelhA3DVY1rauDCufzc3toQ6yvCm5pM6NUs8TSq87v60xidJeo9DNfDJJ+ roaeOEywGBe2YQRokzFBnhcUteheKb3OXLA8NaNJmwXGdhRuUjSTJ+tt1Tx5buG572diW9 GUsRm0WfeS0bMD/WlcSpJZr337LJTZT2qHgWM4zcSkuO6nHIJGBQ7CHFkIg6kw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 374B441B83 for ; Sun, 06 Oct 2024 03:30:01 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sxG5g-00048P-2q; Sat, 05 Oct 2024 21:29:44 -0400 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 1sxFdp-0002C2-MA for guix-patches@gnu.org; Sat, 05 Oct 2024 21:00:57 -0400 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 1sxFdp-0004jJ-Dj for guix-patches@gnu.org; Sat, 05 Oct 2024 21:00:57 -0400 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:Subject; bh=e4ImNhL0T/GSdvsZEsxYNwm1npEcHjvvEnw1jkkQ4TU=; b=XskGOw6dQz6lxy5wVzUeqWwMRhpLDgavqwcDkWUtpZtr/sEWa8DhMqmTbsWfO/HObPXDNMcfkJL/Spd6lkdDHBHr6IfUd/ltiArScmnoDjhtsK1/ErLeofKWbCY6X5ZZJRMaMvRF+7vlCPXrfufYFvI4ICzzRMzHqG7w14WRx6MogGQm+8cMdMaJWIC8IpJUjUjciK1WsaDD8vCtDoRcE8mwBQbdlR4DCRVc/vKTitLnhEs/HtdIkHhr2cB73HCZBeQEnqc2xJsU/dVL0tHPuwp7brWN2Kd+XnOm647oDBcXHjZTZ6o7xjUvvU/lgpcIWVn+8EAqDJ3jfrI1yHyoTw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sxFdt-0002a4-Vh for guix-patches@gnu.org; Sat, 05 Oct 2024 21:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73647] [PATCH] Add indicator-sound-switcher Resent-From: Sebastian Willenbrink Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Oct 2024 01:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73647 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73647@debbugs.gnu.org Cc: Sebastian Willenbrink X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17281764449876 (code B ref -1); Sun, 06 Oct 2024 01:01:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Oct 2024 01:00:44 +0000 Received: from localhost ([127.0.0.1]:39744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxFdb-0002ZC-8I for submit@debbugs.gnu.org; Sat, 05 Oct 2024 21:00:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:34282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sx9sZ-0008Te-RW for submit@debbugs.gnu.org; Sat, 05 Oct 2024 14:51:49 -0400 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 1sx9sT-0003W5-PL for guix-patches@gnu.org; Sat, 05 Oct 2024 14:51:41 -0400 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sx9sQ-0007xw-7s for guix-patches@gnu.org; Sat, 05 Oct 2024 14:51:40 -0400 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-5389917ef34so3633495e87.2 for ; Sat, 05 Oct 2024 11:51:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728154296; x=1728759096; darn=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=e4ImNhL0T/GSdvsZEsxYNwm1npEcHjvvEnw1jkkQ4TU=; b=ST/DPDpcnmOZBdp8Z+ckPW8nzoRTPa7zgUHZTgZG0o/mzmPZY6fOPTBRHFVnOL1YQi SH7ir8Co+t8ysWIyErOO6LE3NZ6d+hadlZBKN+dskP3HxhzOr58yhc+SAjVsRbR8CAI1 qyJDOIBUSjLL4et/bQ+cfVkDS0kXo66gy0JgMTMOiRIpWl3dcS/VxGNuuRMMAUnLkklx VarUfh9WFb1g7KK1WGyGfy2fhw6rNfoVz3MGS0M21f2fvT44YSQBbY8BIrkDjBH3+t7I 3Tbov/HyZ3UoKRJpdyQf0zWlGtVXJ5gibeponx5+OmuZ/f4e+cAoVs46Q9K/QH1jsT52 3mWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728154296; x=1728759096; 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=e4ImNhL0T/GSdvsZEsxYNwm1npEcHjvvEnw1jkkQ4TU=; b=kCds1QTVGeXTKgSL1i/gQZYf0SmntwX2gsIajPGydN7CQdnbbXiNxWgHmgBbNOpqkr 1sp6G/W6n2zhx215YJAJm2Klc4n8cbsY83GEJMNfUXmS5l/grm/seC+batCycXoigaKW 49hDwPINdhhED/MuNdPCkmWv2+qaXX7u9FoW5o4ux3eU2ieOBVr9qHxFYTwIGEgYejsT wv2SPcAArwOwOkLwXrrJG+E4VB+AXXSej964kW4xGuJOYJCaV/zWoTMXPlmF29H60Cvt /cnFt94xpYumOkcXgYqoPpjYDRpgtweuyvS7HEmmy6J+GlirB2I/StwmaL2+oFnCrK3C l7Fw== X-Gm-Message-State: AOJu0YxbcYlJBJtzumWb6C7aq+Ja5HKwAjjeISmXVjpl7TlP/oCKbIoN a3nlebEqn7dLts6OvCHjliXl/Ge6IZQn5LSp9bTF69ZMD9Nb4O3CbzpTRw== X-Google-Smtp-Source: AGHT+IHF6eiw6WcRlahPfTOao3TJ+RdCJSzZTbXNhnikW2X8p7rrAE+Vmtsjh2ztA1NDRUKajwdyJQ== X-Received: by 2002:a05:6512:3d88:b0:539:8b2f:c7aa with SMTP id 2adb3069b0e04-539ab9e6da1mr3669182e87.53.1728154295371; Sat, 05 Oct 2024 11:51:35 -0700 (PDT) Received: from localhost.localdomain (h-176-10-146-112.NA.cust.bahnhof.se. [176.10.146.112]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-539aff28367sm285932e87.281.2024.10.05.11.51.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Oct 2024 11:51:34 -0700 (PDT) From: Sebastian Willenbrink Date: Sat, 5 Oct 2024 20:50:08 +0200 Message-ID: <1266383a76e3fe2cd6e05894e3c04b5b5fdc0242.1728154207.git.sebastian.willenbrink@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=sebastian.willenbrink@gmail.com; helo=mail-lf1-x12b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 05 Oct 2024 21:00:42 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sat, 05 Oct 2024 21:29:42 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 3.48 X-Spam-Score: 3.48 X-Migadu-Queue-Id: 374B441B83 X-TUID: sRKVeC4keML2 This commit adds indicator-sound-switcher. Unfortunately, I couldn't figure out how to export the icons so that the program (/GTK?) finds them so it shows only a default gray icon. Besides that it works fine. Change-Id: I75e5dde35abe0a95af7c11ab2abfbc368ec9dff7 --- gnu/packages/wm.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 38cb8cc717..836b770c02 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) @@ -3957,3 +3958,43 @@ (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 outputs #:allow-other-keys) + (let* ((pulseaudio (assoc-ref inputs "pulseaudio")) + (pulse (string-append pulseaudio + "/lib/libpulse.so.0"))) + (substitute* "setup.py" + (("/etc/xdg/autostart") + '"share/etc/xdg/autostart")) + (substitute* "lib/indicator_sound_switcher/lib_pulseaudio.py" + (("libpulse.so.0") + pulse)))))))) + (home-page "https://github.com/yktoo/indicator-sound-switcher") + (synopsis "Sound input/output selector indicator for Linux") + (description + "It 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))) base-commit: 713f5562faf1acc02dc9e3f3a2d45dc39abbe9f1 -- 2.46.0