From patchwork Sun Dec 26 16:46:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: John Kehayias X-Patchwork-Id: 35666 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 719E327BBEA; Sun, 26 Dec 2021 16:47:15 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,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 EAA8627BBE9 for ; Sun, 26 Dec 2021 16:47:14 +0000 (GMT) Received: from localhost ([::1]:41604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1Wfx-0004St-VQ for patchwork@mira.cbaines.net; Sun, 26 Dec 2021 11:47:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1Wfm-0004Sj-EL for guix-patches@gnu.org; Sun, 26 Dec 2021 11:47:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58088) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1Wfl-0000a4-Vs for guix-patches@gnu.org; Sun, 26 Dec 2021 11:47:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n1Wfl-000315-NC for guix-patches@gnu.org; Sun, 26 Dec 2021 11:47:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52806] [PATCH] gnu: Add xinitrc-xsession. Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 26 Dec 2021 16:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52806 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52806@debbugs.gnu.org X-Debbugs-Original-To: Guix-patches Received: via spool by submit@debbugs.gnu.org id=B.164053721311576 (code B ref -1); Sun, 26 Dec 2021 16:47:01 +0000 Received: (at submit) by debbugs.gnu.org; 26 Dec 2021 16:46:53 +0000 Received: from localhost ([127.0.0.1]:41401 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1Wfc-00030e-LG for submit@debbugs.gnu.org; Sun, 26 Dec 2021 11:46:52 -0500 Received: from lists.gnu.org ([209.51.188.17]:43260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1Wfa-00030U-T1 for submit@debbugs.gnu.org; Sun, 26 Dec 2021 11:46:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1Wfa-0004SX-92 for guix-patches@gnu.org; Sun, 26 Dec 2021 11:46:50 -0500 Received: from mail-4316.protonmail.ch ([185.70.43.16]:30585) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1WfY-0000ZB-1U for guix-patches@gnu.org; Sun, 26 Dec 2021 11:46:49 -0500 Date: Sun, 26 Dec 2021 16:46:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1640537205; bh=eQCKyi0UEea8TOAabTUmpzlvnJNair119K2lo4VqhFo=; h=Date:To:From:Reply-To:Subject:Message-ID:From:To:Cc; b=Xmw8MLqS3sXQrphVf6lrwv4FeTEMBEhLhMQILOpOCpHF9Kwm3qe9XvCLH0bV/3Y9q Fz+fAS2+k4/4p6fFdwJc7mTHgDr6PwiyJ4ikMzG+1CacHm5WeBIyERocsaOS8GQjzL EaYoBd4eQV83vVASE6Q0AdCIvS7HpYoFkgvi9FgjVGbSIBZWIBYaLKT4icUPXOCfzj DhCrPbG+0fw0uXGJ2QPiDf7VPsPnIjqzOzwVEcndmMd884LOeqYGg3rk5xV0wYngkJ Bdtk0iXTYyK7hpNRC1hEwxZq06pcGNxzFw0miYzFT46sgTLVol/duL2DMwvnVL7VuX 1U/4QcqSpAvcQ== Message-ID: MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.43.16; envelope-from=john.kehayias@protonmail.com; helo=mail-4316.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: John Kehayias X-ACL-Warn: , John Kehayias via Guix-patches X-Patchwork-Original-From: John Kehayias via Guix-patches via From: John Kehayias X-getmail-retrieved-from-mailbox: Patches Hi Guix, This is a simple package from Arch's AUR that provides an xsession for using a user's ~/.xinitrc. I've been using this for a while to launch a bare WM (XMonad recently, but others in the past) from GDM and SDDM. There's no formal homepage and the git url will show as 404 in guix lint (I think because there is only git access). I added a description as well. Thanks! John From de0672c0376d7e47165c1f1d62aa4413b33717fa Mon Sep 17 00:00:00 2001 From: John Kehayias Date: Sun, 26 Dec 2021 11:43:26 -0500 Subject: [PATCH] gnu: Add xinitrc-xsession. * gnu/packages/wm.scm (xinitrc-xsession): New variable. --- gnu/packages/wm.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index c6881154fe..a79a4c7fce 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -48,6 +48,7 @@ ;;; Copyright © 2021 Petr Hodina ;;; Copyright © 2021 jgart ;;; Copyright © 2021 Disseminate Dissent +;;; Copyright © 2021 John Kehayias ;;; ;;; This file is part of GNU Guix. ;;; @@ -71,6 +72,7 @@ (define-module (gnu packages wm) #:use-module (guix git-download) #:use-module (guix build-system asdf) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system gnu) #:use-module (guix build-system haskell) #:use-module (guix build-system meson) @@ -2317,6 +2319,43 @@ (define-public xclickroot button is pressed on the root window.") (license license:public-domain))) +(define-public xinitrc-xsession + (let ((commit "cbfc77a1ccaf07b7d8a35f4d8007c7102f365374")) + (package + (name "xinitrc-xsession") + (version "1-3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://aur.archlinux.org/xinit-xsession.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "12nv3qyjhy2l9mcb547f414d8bj79mhdhsra0g8x7x71b1xxl15b")))) + (build-system copy-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'patch-xsession-file + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (xinitrc-helper (string-append out "/bin/xinitrcsession-helper"))) + (substitute* (string-append out "/share/xsessions/xinitrc.desktop") + (("Exec=xinitrcsession-helper") + (string-append "Exec=" xinitrc-helper))))))) + #:install-plan + '(("xinitrcsession-helper" "bin/") + ("xinitrc.desktop" "share/xsessions/")))) + (home-page "https://aur.archlinux.org/packages/xinit-xsession/") + (synopsis "Use ~/.xinitrc as an xsession from your display manager") + (description + "Allows @code{~/.xinitrc} to be run as a session from your display manager. +Use this package in your system configuration to make this xsession +available.") + (license license:gpl3)))) + (define-public xmenu (package (name "xmenu") -- 2.34.1