From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gAbYI+yv/mInIwEAbAwnHQ (envelope-from ) for ; Thu, 18 Aug 2022 23:32:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UHPcI+yv/mIWLQAA9RJhRA (envelope-from ) for ; Thu, 18 Aug 2022 23:32:28 +0200 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 6E40F12DAA for ; Thu, 18 Aug 2022 23:32:27 +0200 (CEST) Received: from localhost ([::1]:56332 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oOn7q-0007Rm-KF for larch@yhetil.org; Thu, 18 Aug 2022 17:32:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43228) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOn7S-0007RG-Dc for guix-patches@gnu.org; Thu, 18 Aug 2022 17:32:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38861) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oOn7S-0002FT-4v for guix-patches@gnu.org; Thu, 18 Aug 2022 17:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oOn7R-0002cx-ND for guix-patches@gnu.org; Thu, 18 Aug 2022 17:32:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57289] [PATCH] gnu: Add mons. Resent-From: simon@netpanic.org Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 18 Aug 2022 21:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57289 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57289@debbugs.gnu.org Cc: Simon Streit X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166085829410064 (code B ref -1); Thu, 18 Aug 2022 21:32:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Aug 2022 21:31:34 +0000 Received: from localhost ([127.0.0.1]:56843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oOn6z-0002cF-RD for submit@debbugs.gnu.org; Thu, 18 Aug 2022 17:31:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:47342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oOn6v-0002c4-5G for submit@debbugs.gnu.org; Thu, 18 Aug 2022 17:31:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOn6v-0007OV-0Y for guix-patches@gnu.org; Thu, 18 Aug 2022 17:31:29 -0400 Received: from smtprelay02.ispgateway.de ([80.67.18.44]:34920) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOn6t-0002BN-7a for guix-patches@gnu.org; Thu, 18 Aug 2022 17:31:28 -0400 Received: from [62.8.179.11] (helo=herbert.d22.home.arpa) by smtprelay02.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1oOn79-0002a7-US; Thu, 18 Aug 2022 23:31:44 +0200 From: simon@netpanic.org Date: Thu, 18 Aug 2022 23:31:17 +0200 Message-Id: X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Df-Sender: c2ltb25AbmV0cGFuaWMub3Jn Received-SPF: none client-ip=80.67.18.44; envelope-from=simon@netpanic.org; helo=smtprelay02.ispgateway.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660858347; 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; bh=S23UlXZiKaLADFQl4isfo2y2FUK+D+7WB63g4PUaGWw=; b=a0Xae8dBDZL5YjvWAazkiq9g8QCTI1qEj2AC5N1rZG3MfOUWz9tFrqHesXD+0q+2AZengB AH6ZmjH91V/ePJ3wDaq+0r0GbNudPztpXNlnmqv7wnJf3JJkLFgbPZdHo0dRlw9QunL6ls nJO3OACj9MnJbbCEVsaO79fb5TgiY4IkCBoIn7X6BhhA2Bbs7jud7+fdugeBP83hvV/UyN y/dzVG8ZTdeZVPTPCp2LxQ2O91Qd/oflpNZDaiXp49WCo6hDWBG9NFwoZvWX2qAQ439mDa bW1VeKub0UYDTsC1lZ5gpLnlBs0QKSGuE2L9Fi7EfchhvIcGaeHIZ/x3S+ScPw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660858347; a=rsa-sha256; cv=none; b=EG+et20W29tLsiFz1iLHmb/jJVkB2MEUxSGfOoHVxFlQGNH7ijxVrJaizcqGYPATC+Khf1 bbmqIYpgH7xJSVaoVlosLT4EVEWr1Omlg1sBXE3Ih3uTlvc9FPZDzrYQT7aAuz7BxNMzJt asJVNcVNjxDXOMENIqGGgvv2UHWyyhQeV14RjwAdNpghL+khAqrpBoGQYxryOSST/sr1J4 mc2oW/pI+vmvaoLLP2/LlVer0qeHeU/jRA6b+z7t+igc1hOL6TcDm4dBzkgIgDylLgJlLQ KQs0GPIjWqpBAzmolxCs2705AR+37EUHSojFClyYvjuHWs9HYVsHc3C/i+zb9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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" X-Migadu-Spam-Score: -1.56 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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" X-Migadu-Queue-Id: 6E40F12DAA X-Spam-Score: -1.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: X9LFN6KZQi7A From: Simon Streit * gnu/packages/xdisorg.scm (mons): New variable. --- gnu/packages/xdisorg.scm | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 8360708445..bebd1e79cc 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -3157,3 +3157,46 @@ (define-public wlsunset light filter or night light.") (license license:expat))) +(define-public mons + (package + (name "mons") + (version "0.8.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Ventto/mons") + (commit (string-append "v" version)) + (recursive? #t))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1dvfw40p81n24c28wvl39vn8acr2n0r4wh69fxp05afmp5lhp3vv")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ;there are none. + #:phases (modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'fix-prefix + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "Makefile" + (("/usr") + "")))) + (replace 'build + (lambda* (#:key outputs #:allow-other-keys) + (setenv "DESTDIR" + (assoc-ref %outputs "out")) + (invoke "make" "install"))) + (add-after 'build 'fix-lib-path + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "mons" + (("/usr/lib") + (string-append (assoc-ref outputs "out") "/lib")))))))) + (native-inputs (list help2man)) + (inputs (list xrandr)) + (home-page "https://github.com/Ventto/mons") + (synopsis "POSIX Shell script to quickly manage monitors on X") + (description + "A POSIX compliant script that provides well-known modes like +computer, duplicate, extend and projector mode as well as selecting +and positioning one or two monitors among those plugged in.") + (license license:expat))) -- 2.37.2