From patchwork Thu Oct 13 15:22:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: florhizome X-Patchwork-Id: 43381 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 98C6C27BBEA; Thu, 13 Oct 2022 18:49:06 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable 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 4878127BBE9 for ; Thu, 13 Oct 2022 18:49:06 +0100 (BST) Received: from localhost ([::1]:40120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oj2KP-0001uC-F5 for patchwork@mira.cbaines.net; Thu, 13 Oct 2022 13:49:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oj2JP-0001Ny-1s for guix-patches@gnu.org; Thu, 13 Oct 2022 13:48:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35805) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oj2JO-000246-Lh for guix-patches@gnu.org; Thu, 13 Oct 2022 13:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oj2JO-0000Mm-EM for guix-patches@gnu.org; Thu, 13 Oct 2022 13:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58500] [PATCH] gnu: add rofi-wayland Resent-From: florhizome@posteo.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 13 Oct 2022 17:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58500 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58500@debbugs.gnu.org Cc: florhizome X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16656832301203 (code B ref -1); Thu, 13 Oct 2022 17:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Oct 2022 17:47:10 +0000 Received: from localhost ([127.0.0.1]:34873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oj2IU-0000JC-Iv for submit@debbugs.gnu.org; Thu, 13 Oct 2022 13:47:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:52712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oj02m-0004cd-Ez for submit@debbugs.gnu.org; Thu, 13 Oct 2022 11:22:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oj02m-00078z-3X for guix-patches@gnu.org; Thu, 13 Oct 2022 11:22:44 -0400 Received: from mout02.posteo.de ([185.67.36.66]:56325) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oj02k-0002j6-0b for guix-patches@gnu.org; Thu, 13 Oct 2022 11:22:43 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A37D1240101 for ; Thu, 13 Oct 2022 17:22:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665674559; bh=JnnAgT8VmVWVxwhiqqXpkgxuoRC3phY92DPvriXjsQE=; h=From:To:Cc:Subject:Date:From; b=JDsRRIpeKSEolCAQYSzy8yUs44TYopHCeuQUizlUIX52aN/GtyTwXpGiEHKG00zbB QGfNUJpUShsxcv/2ZxO7DXCbLKeYKY6++G9ed2txlCHDf443UReCVXElgXp7ZJ3m58 sh8stcXsCcfeK/Z9dRtemURCdeuymIn6Y+rNm4hjoLhKacoQONKN6ZHSoZ+HnaZWeC /2pG6qfqPVjWRb7DS8kXLI+3RQfIc/b1in9eZzuQbwDY/S5R6X8syPD6g1b3C9oiH9 UhymDi9wTqPZ3e5MX+LqqHzBOIdU9KDPwZI7JqEzNR5CELngNzU8xhbaEMy2oA+RrC 2icJZPCcniAPw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MpCv30zxDz6tnM; Thu, 13 Oct 2022 17:22:38 +0200 (CEST) From: florhizome@posteo.net Date: Thu, 13 Oct 2022 15:22:35 +0000 Message-Id: MIME-Version: 1.0 Received-SPF: pass client-ip=185.67.36.66; envelope-from=florhizome@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 13 Oct 2022 13:46:57 -0400 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" X-getmail-retrieved-from-mailbox: Patches From: florhizome This adds a wayland compatible fork of rofi. --- gnu/packages/xdisorg.scm | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) base-commit: 86ec52f66735b122b9035eba56516fd16f3be958 prerequisite-patch-id: 253e1cc8278ab9981294f4e483c7b29a466672d9 prerequisite-patch-id: fb797b9fdd73d1c18cba5dbd5804396d333f13df diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 2533744633..2dbee6f7b6 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -1860,6 +1860,52 @@ (define-public rofi by name.") (license license:expat))) +(define-public rofi-wayland + (package + (inherit rofi) + (name "rofi-wayland") + (version "1.7.5") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/lbonn/rofi") + (commit + (string-append version "+wayland1")) + (recursive? #t))) + (sha256 + (base32 "0d2h1ys05sixwf508b3cqaailjibh56009cnjz809akgndbqplkm")) + (file-name (git-file-name name version)))) + (build-system meson-build-system) + (arguments + (list #:tests? #f ;;last test fails + #:parallel-tests? #f ; fails in some circumstances + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'adjust-tests + (lambda _ + (substitute* '("test/helper-expand.c") + (("~root") "/root") + (("~") "") + (("g_get_home_dir \\(\\)") "\"/\""))))))) + (inputs (modify-inputs + (package-inputs rofi) + (append wayland-protocols gdk-pixbuf wayland))) + (synopsis "Rofi fork that's wayland-ready") + (description "This is a fork of Rofi with added support for Wayland via the + layer shell protocol. +Differences with rofi (in wayland mode): +@itemize +@item native window selection mode when running under Wayland. +@item -normal-window flag in Wayland mode. +@item selecting which monitor to run rofi on in Wayland mode, + rofi only shows up on the currently focused monitor +@item some window locations parameters work partially, x-offset + and y-offset are only working from screen edges +@item some X11-specific options like -dpi or fake transparency +@end itemize"))) + (define-public rofi-calc (package (name "rofi-calc")