From patchwork Sat Mar 29 08:32:45 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andrew Wong X-Patchwork-Id: 40945 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 386F527BBEA; Sat, 29 Mar 2025 08:35:40 +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.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 A882327BBE2 for ; Sat, 29 Mar 2025 08:35:39 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tyRel-0002RE-Qa; Sat, 29 Mar 2025 04:35:07 -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 1tyReh-0002Nu-SC for guix-patches@gnu.org; Sat, 29 Mar 2025 04:35:03 -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 1tyReg-0000ty-Vj for guix-patches@gnu.org; Sat, 29 Mar 2025 04:35:03 -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:References:In-Reply-To:Date:From:To:Subject; bh=CZpi7+V/7Z3HZuIVc/wrEfW5k6mHsvzqML+bl2FOwr0=; b=QNy2F1unnNIHqnSTqVwS0oxD4xuAn8WEDqxBiAmFlGTrvyjEnXfqAfw+JfbFrU5bWmVAArbnSALQXhhxGcbR45VaBgMDi5N/VzyqCB+sY1VRhGjO1cDRUYIjXKGd+P6DitA+O7EMn2EON8qsM9LE4r8D8sTVV2enTfSbgPwenWopFmQlQ1C40l3dv+oSApZfznznjVzxyOz6WQJkpR12MSwfFeTfizyPB4f1RDdb5CHp6uYPLxe+dbe8/HR4mWrtfmtu6CCi+KO65TWr243nJH23BVOGnBRiyniUeogR9EH1OrJnE8ztL5FvLxif061MP1BHAg0kYAapm6PDc64kxQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tyReg-0001QV-Oy for guix-patches@gnu.org; Sat, 29 Mar 2025 04:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#76910] [PATCH v2 1/4] gnu: Add Hyprland plugins. Resent-From: Andrew Wong Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 29 Mar 2025 08:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76910 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 76910@debbugs.gnu.org Cc: Andrew Wong Received: via spool by 76910-submit@debbugs.gnu.org id=B76910.17432372895426 (code B ref 76910); Sat, 29 Mar 2025 08:35:02 +0000 Received: (at 76910) by debbugs.gnu.org; 29 Mar 2025 08:34:49 +0000 Received: from localhost ([127.0.0.1]:56717 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tyReS-0001PR-OY for submit@debbugs.gnu.org; Sat, 29 Mar 2025 04:34:49 -0400 Received: from qs51p00im-qukt01080501.me.com ([17.57.155.22]:39915) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tyReK-0001OV-04 for 76910@debbugs.gnu.org; Sat, 29 Mar 2025 04:34:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; bh=CZpi7+V/7Z3HZuIVc/wrEfW5k6mHsvzqML+bl2FOwr0=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:x-icloud-hme; b=gsBB93Ho2AgSjtXX/T2yBCUFK6qcc7AZTZdtI7Keg28lB30iU/N2o6hLoFnoM/zEK Bcp9TB1UxqLv/ute9hUAct4EQmuTGvBK17Kc0ikNYagdogEmLrL26y6ogcvDwvK0by 3Jzb6m3WX66gqJvB1Pe6LXP+Rf5tqkVfp5P6j54/aSZmZjlikr0SFEQ5B+THEDLb9C IGEgqDLo9UPLrEAwBn8my6VoeeHSt6nnvntdXda69pDKmQyz0LJ4N4ZQTbBrirH0j5 pWyXKTyGnkE7BMx+ZfbFRH7asgbDWtK6foGSlGwEQW0HKYr1D2hJPqaxQm1QEgjf0j IAnrsXUX5TK6A== Received: from wongworks.lan (qs51p00im-dlb-asmtp-mailmevip.me.com [17.57.155.28]) by qs51p00im-qukt01080501.me.com (Postfix) with ESMTPSA id E68CF19801A4; Sat, 29 Mar 2025 08:34:33 +0000 (UTC) Date: Sat, 29 Mar 2025 04:32:45 -0400 Message-ID: <448e7dba50c454febb3609fbb24f6fafba5e6c0f.1743237168.git.wongandj@icloud.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: References: MIME-Version: 1.0 X-Proofpoint-GUID: t7_z_jLnyQ1HvDvmlp43tqwkFDwGb6LR X-Proofpoint-ORIG-GUID: t7_z_jLnyQ1HvDvmlp43tqwkFDwGb6LR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1095,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-03-29_01,2025-03-27_02,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 suspectscore=0 clxscore=1015 mlxlogscore=999 malwarescore=0 mlxscore=0 spamscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2503290060 X-Apple-Remote-Links: v=1;h=KCk=;charset=UTF-8 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: , Reply-to: Andrew Wong X-ACL-Warn: , Andrew Wong via Guix-patches X-Patchwork-Original-From: Andrew Wong via Guix-patches via From: Andrew Wong 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 (hyprland-plugin): New function. * gnu/packages/wm.scm (borders-plus-plus): New variable. * gnu/packages/wm.scm (csgo-vulkan-fix): New variable. * gnu/packages/wm.scm (hyprbars): New variable. * gnu/packages/wm.scm (hyprexpo): New variable. * gnu/packages/wm.scm (hyprtrails): New variable. * gnu/packages/wm.scm (hyprwinwrap): New variable. * gnu/packages/wm.scm (xtra-dispatchers): New variable. Change-Id: I923095e0d0cbc1c237e55a78dd2e9c1b1a3235df --- gnu/packages/wm.scm | 75 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 2eefdb4c64..5017344e5b 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -446,6 +446,81 @@ (define-public hyprland `((upstream-name . "source"))) (license license:bsd-3))) +(define hyprland-plugin + (lambda (plugin-name plugin-provision) + "Generate a packaged plugin from Hyprland's official plugin repository." + (package + (name plugin-name) + (version "0.47.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hyprwm/hyprland-plugins") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "06jydclvivd7xq0kwn6s19jhmmfqc5q649z7w4wqqj6jdhgkhayg")))) + (build-system cmake-build-system) + (native-inputs (list gcc-14 pkg-config)) + (inputs (list hyprland + libdrm + libinput + eudev + pango + pixman + wayland + libxkbcommon + mesa + hyprutils + hyprgraphics + aquamarine + hyprlang)) + (arguments (list #:cmake cmake-3.30 + #:tests? #f ; no tests. + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ (chdir #$plugin-name))) + (replace 'install-license-files + (lambda _ (install-file + "../LICENSE" + (string-append #$output "/share/doc/" + #$name "-" + #$version))))))) + (home-page (string-append "https://github.com/hyprwm/hyprland-plugins/" + plugin-name)) + (synopsis (string-append "Hyprland plugin providing " + plugin-provision)) + (description + (string-append "This is an official Hyprland plugin that provides " + plugin-provision ".")) + (license license:bsd-3)))) + +(define-public borders-plus-plus + (hyprland-plugin "borders-plus-plus" "extra borders around windows")) + +(define-public csgo-vulkan-fix + (let ((parent (hyprland-plugin "csgo-vulkan-fix" + "virtual native resolution reporting"))) + (package (inherit parent) (inputs (modify-inputs (package-inputs parent) + (append xcb-util-wm)))))) + +(define-public hyprbars + (hyprland-plugin "hyprbars" "window title bars")) + +(define-public hyprexpo + (hyprland-plugin "hyprexpo" "an exposé feature")) + +(define-public hyprtrails + (hyprland-plugin "hyprtrails" "trail effects behind windows")) + +(define-public hyprwinwrap + (hyprland-plugin "hyprwinwrap" "a window-as-wallpaper feature")) + +(define-public xtra-dispatchers + (hyprland-plugin "xtra-dispatchers" "extra dispatchers")) + (define-public i3status (package (name "i3status")