From patchwork Sun Oct 2 19:22:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 43115 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 0E3F227BBE9; Sun, 2 Oct 2022 20:23:18 +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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS 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 4987D27BBEA for ; Sun, 2 Oct 2022 20:23:16 +0100 (BST) Received: from localhost ([::1]:46632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1of4YV-0002Vw-G1 for patchwork@mira.cbaines.net; Sun, 02 Oct 2022 15:23:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of4YN-0002Vn-TM for guix-patches@gnu.org; Sun, 02 Oct 2022 15:23:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49012) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1of4YI-0005ns-Ab for guix-patches@gnu.org; Sun, 02 Oct 2022 15:23:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1of4YH-0001Nr-Vf for guix-patches@gnu.org; Sun, 02 Oct 2022 15:23:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58179] [PATCH] gnu: Add rofi-switch-browser-tabs. References: <87edvuynaw.fsf@ngraves.fr> In-Reply-To: <87edvuynaw.fsf@ngraves.fr> Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 02 Oct 2022 19:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58179 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 58179@debbugs.gnu.org Received: via spool by 58179-submit@debbugs.gnu.org id=B58179.16647385715289 (code B ref 58179); Sun, 02 Oct 2022 19:23:01 +0000 Received: (at 58179) by debbugs.gnu.org; 2 Oct 2022 19:22:51 +0000 Received: from localhost ([127.0.0.1]:48090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1of4Y7-0001NE-FL for submit@debbugs.gnu.org; Sun, 02 Oct 2022 15:22:51 -0400 Received: from 6.mo582.mail-out.ovh.net ([87.98.177.69]:54897) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1of4Y4-0001N5-OE for 58179@debbugs.gnu.org; Sun, 02 Oct 2022 15:22:50 -0400 Received: from player734.ha.ovh.net (unknown [10.110.171.31]) by mo582.mail-out.ovh.net (Postfix) with ESMTP id 559222302D for <58179@debbugs.gnu.org>; Sun, 2 Oct 2022 19:22:47 +0000 (UTC) Received: from ngraves.fr (met42-h01-213-44-161-47.dsl.sta.abo.bbox.fr [213.44.161.47]) (Authenticated sender: ngraves@ngraves.fr) by player734.ha.ovh.net (Postfix) with ESMTPSA id E751A2F0A8C27 for <58179@debbugs.gnu.org>; Sun, 2 Oct 2022 19:22:46 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-110S004b521c6b7-67d7-475e-877c-853ef6829929, 96DE67F35539E2552C464D072B5C92269B67134A) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 213.44.161.47 Date: Sun, 02 Oct 2022 21:22:46 +0200 Message-ID: <87r0zqvxmh.fsf@ngraves.fr> MIME-Version: 1.0 X-Ovh-Tracer-Id: 16503159363660735006 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrfeehjedgudefjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvufffkfggtgfgsehtqhertddttdejnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepledtffejieegvdejuefgiedtkefggfelkeeltddtheegtdelffeiveetieetleegnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkpheptddrtddrtddrtddpvddufedrgeegrdduiedurdegjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeefgedrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeehkedujeelseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehkedv 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" Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves X-getmail-retrieved-from-mailbox: Patches * gnu/packages/xdisorg.scm (rofi-switch-browser-tabs): New variable. --- gnu/packages/xdisorg.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) -- 2.37.3 Sorry for the double send. In a few words, I forked the project and made it work with minimal changes without node-chrome-remote-interface. The first commits aren't useful for this final package anymore, although they are correct and could still be added if wanted. -- Best regards, Nicolas Graves diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 9908f29191..e8c201f375 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -56,6 +56,7 @@ ;;; Copyright © 2022 Jai Vetrivelan ;;; Copyright © 2022 Derek Chuank ;;; Copyright © 2022 Wamm K. D. +;;; Copyright © 2022 Nicolas Graves ;;; ;;; This file is part of GNU Guix. ;;; @@ -126,6 +127,7 @@ (define-module (gnu packages xdisorg) #:use-module (gnu packages sphinx) #:use-module (gnu packages tcl) #:use-module (gnu packages terminals) + #:use-module (gnu packages wget) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) #:use-module (gnu packages) @@ -1905,6 +1907,38 @@ (define-public rofi-calc natural language input and provide results.") (license license:expat))) +(define-public rofi-switch-browser-tabs + (let* ((commit "e1516cc2cb824fb9bdfe45680429e36d6e3789c5") + (revision "0")) + (package + (name "rofi-switch-browser-tabs") + (version (git-version "0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nicolas-graves/rofi-switch-browser-tabs") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "15r3ajf60vgirrlapqf10xlklmwpj4k39sii9ji6djm16anpqwsm")))) + (build-system copy-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-before 'install 'exe + (lambda _ (chmod "switch-browser-tabs" #o555)))) + #:install-plan + (list '("switch-browser-tabs" "bin/")))) + (propagated-inputs (list wget jq)) + (home-page "https://github.com/nicolas-graves/rofi-switch-browser-tabs") + (synopsis "Use rofi to switch between browser tabs") + (description "This packages provides a simple rofi mode to switch between +tabs in Chromium-based browsers. Once installed, just run your browser with +@code{--remote-debugging-port=9222} and use +@code{rofi -modi 'switch-tabs:switch-browser-tabs' -show switch-tabs}.") + (license license:expat)))) + (define-public tint2 (package (name "tint2")