From patchwork Tue Jan 11 22:34:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: John Kehayias X-Patchwork-Id: 36237 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 69FD827BBEA; Tue, 11 Jan 2022 22:35:44 +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 DFA6C27BBE9 for ; Tue, 11 Jan 2022 22:35:43 +0000 (GMT) Received: from localhost ([::1]:57146 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7Pjy-0006El-VU for patchwork@mira.cbaines.net; Tue, 11 Jan 2022 17:35:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7PjK-0006EV-5m for guix-patches@gnu.org; Tue, 11 Jan 2022 17:35:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34689) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7PjJ-0006C7-SU for guix-patches@gnu.org; Tue, 11 Jan 2022 17:35:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n7PjJ-0007uU-QC for guix-patches@gnu.org; Tue, 11 Jan 2022 17:35:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52806] [PATCH v5] gnu: Add xinitrc-xsession. Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 11 Jan 2022 22:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52806 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: "52806@debbugs.gnu.org" <52806@debbugs.gnu.org> Received: via spool by 52806-submit@debbugs.gnu.org id=B52806.164194046730320 (code B ref 52806); Tue, 11 Jan 2022 22:35:01 +0000 Received: (at 52806) by debbugs.gnu.org; 11 Jan 2022 22:34:27 +0000 Received: from localhost ([127.0.0.1]:55825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7Pik-0007sw-KV for submit@debbugs.gnu.org; Tue, 11 Jan 2022 17:34:27 -0500 Received: from mail-40131.protonmail.ch ([185.70.40.131]:17051) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7Pii-0007sQ-Jw for 52806@debbugs.gnu.org; Tue, 11 Jan 2022 17:34:25 -0500 Date: Tue, 11 Jan 2022 22:34:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1641940457; bh=MRmZ9tsLMK7Mc8gnIlVDLFqn6pFusjgmlKHpFxJNX0w=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc; b=gGR+MRc5zMjF9ObQGfcwlywnO9vjw47Dufy6iRhOSy3ezI3qID6zX6hm6una3GVMK x/psFbs7ht7YTh9UklM/JUjZWYfFeCVWnUrEcS4fKBZlq9wW8n5gAclL7DKlxUekKA D7CPyxZMLAn5WU4rEeZcTd1sfR1LXbuK5/gMXT/vSdHX0QEqnNhuhnXArqGmN8ou51 WHc2lxxehVCU28UVTpjfzFXOeTqCEkx/SxyZAtv0Xizii2TXNqJALqg0JQw92U/A3a 5+JsBn/gc9KtD/xUGE0e+ZlSpKm/fKKmmemAuyziUoIOvydYeraG0+kLINXgy6gnxv 2Yk6yGlIm9emw== Message-ID: <8jp1iB7YrQ26RetEUuJm06jn0q0xsMCcEiRhKdaD-1X5Febwpb5VDSQHx1OUQ2t0G2s-qBB4QJcNh4YW3ocSlcUEGunRZoX6W0n3YqfGi2o=@protonmail.com> In-Reply-To: <71035272c469269e65a7a4048b72a65da19a9bb2.camel@telenet.be> References: <71035272c469269e65a7a4048b72a65da19a9bb2.camel@telenet.be> 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" 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 Maxime, ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Tuesday, January 11th, 2022 at 5:24 PM, Maxime Devos wrote: > 'outputs' is unused here, so you can simplify the lambda from > (lambda * (#:key outputs #:allow-other-keys) ...) > to > (lambda _ ...). > Right, another thing that can be removed here with the gexp. Thanks! John From b8344d2876e978d80bf56ba65993c4cf66246dad 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 | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index bf24dfa0d9..72e2e37313 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 © 2022 John Kehayias ;;; ;;; This file is part of GNU Guix. ;;; @@ -68,9 +69,11 @@ (define-module (gnu packages wm) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix gexp) #: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 +2320,47 @@ (define-public xclickroot button is pressed on the root window.") (license license:public-domain))) +(define-public xinitrc-xsession + (let ((commit "cbfc77a1ccaf07b7d8a35f4d8007c7102f365374") + (revision "0")) + (package + (name "xinitrc-xsession") + (version (git-version "1" revision commit)) + (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 + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'patch-xsession-file + (lambda _ + (let* ((xinitrc-desktop + (string-append #$output "/share/xsessions/xinitrc.desktop")) + (xinitrc-helper + (string-append #$output "/bin/xinitrcsession-helper"))) + (substitute* xinitrc-desktop + (("Exec=xinitrcsession-helper") + (string-append "Exec=" xinitrc-helper))))))) + #:install-plan + #~(list '("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 + "Xinitrc-xsession allows @code{~/.xinitrc} to be run as a session from your +display manager. Make @code{~/.xinitrc} executable and use this package in +your system configuration have this xsession available to your display +manager.") + (license license:gpl3)))) + (define-public xmenu (package (name "xmenu") -- 2.34.0