From patchwork Sat Mar 29 16:16:36 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Gabriel Santos X-Patchwork-Id: 40972 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 30C6127BBE2; Sat, 29 Mar 2025 16:21:57 +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=-3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_SBL_CSS,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 237C827BBEA for ; Sat, 29 Mar 2025 16:21:56 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tyYvo-0007Ta-5I; Sat, 29 Mar 2025 12:21:12 -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 1tyYve-0007NJ-Hk for guix-patches@gnu.org; Sat, 29 Mar 2025 12:21:05 -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 1tyYve-0008Ap-53 for guix-patches@gnu.org; Sat, 29 Mar 2025 12:21:02 -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=G/wcE4Xix9T0G/jcSxpVMB/Mv7/nCzFqGaXKfQVxp1U=; b=hHySYVpjvrchpksgoEotUMS+bXn4OKWQ7P2RXyQrHCF7GwsKZRsD40n12K7iM1CDLBWPEOj1y08OpV9GlPds9GzOJIN13xpjoM1kC7gZUqrGTlTOqEGwKtpfljR94dvr5pswq6TAlLP1v5xVHUkHm5Tx9oP91teizBESwk5DWKJWWOiVLnqGEDyZ36yz/vOWrjhVfm0iwNtC4qS+wu3Z0LGQlp2xmyIHZ6EByjUR3E7u0Q7DshYhVv5Xix0+kac+hMzBJUQGYpGrNXuzZO/Ta2dlJXjy3P8Oh1gU8yTze8YY+KCM9MBudHbmlQ07GBSyvITz2+5PbVsv6Bu/1bPVvA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tyYve-0005ZE-1K for guix-patches@gnu.org; Sat, 29 Mar 2025 12:21:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#76910] [PATCH v3 1/5] gnu: Add Hyprland plugins. Resent-From: Gabriel Santos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 29 Mar 2025 16:21:01 +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.174326523021285 (code B ref 76910); Sat, 29 Mar 2025 16:21:01 +0000 Received: (at 76910) by debbugs.gnu.org; 29 Mar 2025 16:20:30 +0000 Received: from localhost ([127.0.0.1]:32800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tyYv7-0005XE-U7 for submit@debbugs.gnu.org; Sat, 29 Mar 2025 12:20:30 -0400 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]:52308) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tyYv4-0005Wu-SL for 76910@debbugs.gnu.org; Sat, 29 Mar 2025 12:20:28 -0400 Received: by mail-pl1-x643.google.com with SMTP id d9443c01a7336-227c7e57da2so51854135ad.0 for <76910@debbugs.gnu.org>; Sat, 29 Mar 2025 09:20:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743265221; x=1743870021; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=G/wcE4Xix9T0G/jcSxpVMB/Mv7/nCzFqGaXKfQVxp1U=; b=IhYEkcy1X6B311618zRQd5mVzitqvGeDlfC9Zrk/8rkTTW967thYE9CtcmUyXJenrI HCIyOGcBErh2KysJgmO4hQMWJQHtRdkBSklt8hty2Ei27P8HdW9lflRNLa2EdWUWNBN1 CqtJRxxFyqeJysXthROKPxLsb9ifS4DHSoCF0Yu312D8Pqlka8LDGC8Te4xJd2JOtqJI 0BrX8EsDPHIdWw624JtUX0zo029lq1pnYXx8v7YgQWXrbsjFGYjNOV4XOq0oom/sHPjG KNB2yTyeWhnJAmqYB4uxeC2pj/BiyVqjlisT3uZ2YfZzNtmy4sMkILXdiEy+1pzdZYy7 /z4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743265221; x=1743870021; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=G/wcE4Xix9T0G/jcSxpVMB/Mv7/nCzFqGaXKfQVxp1U=; b=TYXMDzwoc9ZM+L8lsey6J0wKZgj06BF4pN15QnLFXqgMEtUpTSRKITt8b5P0F20YZ2 DJG8L2iWOOG8p0q93g5gmIltKo8tTdl3SF3BIk0Em8Qro/kUYSwU8IftHtEbxDEU8M2h 5xiXR8WGXDefg8Hwwan+Pss0FwTrXiQRDr/ypR/7x6/60FYyy+7cvwW8sb93Q4k5mJ2C 8hYWbnvlgwykrrCs6MjWxLfzyZD0Gr+iVWQukAPzOSrtlrDgQ4/ACHdsPv9NZSFa8NMZ KrOFDInyVL31fF/jRRKT2dz1Gxo90Tj0FeDaUEFOyv1JugOkOuLlARSbuTx6xNs1lbOy IAdQ== X-Gm-Message-State: AOJu0Yz99LgRijme7/xom3NTMWp2ok/tdqrjNifvcP5TIeic76U9vSEO CwCEUYjWfWFgHiUz//5PB32jOQmLpH+4nDAMnsuijVtN54bE/XJhUdUt3J4TssAYEw== X-Gm-Gg: ASbGncvWQH407HHXCDNRq7QoME2Sced/6FYF7S+GIm/qOkRUEagwLugU4DjZCn8aWiv /OGzgu4moL86wbQjeSV/BxTkUj5nexXCcY1/vF4CGvRmEQpaAw/1V4adZL9zz7NfHMXh6vbAWh8 Z1U4Dgh3RownOBNJrIwg8Dt1C0b86FHTWYB2Ouv30bPnDKB1Gd2Daw/w4a5nKL43LAtNx6HpH4D j8ojb12L5wv/gj+1TaPALzXZLw8NOSIXbZXT9qA7BvPbGSwPMQ14cFdB5RtCz9SEU5Tx/E4fste Fejkl8CKWvxApKvt7LarcDs5lUKHUcT3LAABxVD94TVuLUGA6FBnJ+/HNjqNZ0ALJ3N5ixrAlEW jvqeSYqDe3w== X-Google-Smtp-Source: AGHT+IHndSCDDbaRdkLIJ/9JF4dexT/ybjRvUqRnmUE1JWods5/6AtZHwAvDI108gmHo4avFanTnyg== X-Received: by 2002:a05:6a00:21c9:b0:736:34ca:deee with SMTP id d2e1a72fcca58-739803531famr4764899b3a.7.1743265220638; Sat, 29 Mar 2025 09:20:20 -0700 (PDT) Received: from localhost (177-70-169-245.infotec.psi.br. [177.70.169.245]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-739710636aesm3888335b3a.91.2025.03.29.09.20.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Mar 2025 09:20:20 -0700 (PDT) From: Gabriel Santos X-Google-Original-From: Gabriel Santos Date: Sat, 29 Mar 2025 13:16:36 -0300 Message-ID: X-Mailer: git-send-email 2.49.0 In-Reply-To: References: 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 From: Andrew Wong * 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 | 76 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 2eefdb4c64..15b70df731 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -80,6 +80,7 @@ ;;; Copyright © 2024 Jakob Kirsch ;;; Copyright © 2025 Tomáš Čech ;;; Copyright © 2025 Ricardo Wurmus +;;; Copyright © 2025 Andrew Wong ;;; ;;; This file is part of GNU Guix. ;;; @@ -446,6 +447,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")