From patchwork Mon Feb 13 10:49:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Feng Shu X-Patchwork-Id: 46917 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 6776716663; Mon, 13 Feb 2023 10:50:08 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 D61471665B for ; Mon, 13 Feb 2023 10:50:06 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRWPM-0002PE-40; Mon, 13 Feb 2023 05:50:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRWPK-0002Oo-LO for guix-patches@gnu.org; Mon, 13 Feb 2023 05:50:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pRWPK-0001TJ-Bq for guix-patches@gnu.org; Mon, 13 Feb 2023 05:50:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pRWPK-000349-7t for guix-patches@gnu.org; Mon, 13 Feb 2023 05:50:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61056] [PATCH v8 1/2] gnu: Add jwm. References: <20230125111514.5194-1-tumashu@163.com> In-Reply-To: <20230125111514.5194-1-tumashu@163.com> Resent-From: Feng Shu Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Feb 2023 10:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61056 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61056@debbugs.gnu.org Received: via spool by 61056-submit@debbugs.gnu.org id=B61056.167628536711716 (code B ref 61056); Mon, 13 Feb 2023 10:50:02 +0000 Received: (at 61056) by debbugs.gnu.org; 13 Feb 2023 10:49:27 +0000 Received: from localhost ([127.0.0.1]:47754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRWOl-00032u-2y for submit@debbugs.gnu.org; Mon, 13 Feb 2023 05:49:27 -0500 Received: from m12.mail.163.com ([220.181.12.214]:60960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRWOi-00032e-9w for 61056@debbugs.gnu.org; Mon, 13 Feb 2023 05:49:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version: Content-Type; bh=ZyVon/eqNUcLJ4VcIX6kwH8mN6WgEAs4SmRgMvct3IY=; b=fliWxZPPNPjAml7qIm6Qh8tb/unE5CEYyLIXLo0TONTNS1fa6Ck571kRXqHM4H gMonv7EM5/H38afNFVr77LlqHSyO2IpYbNoI1GneJyzfoUsP/Xp4CpZy/wDtMd6C 9apf4DfOrEznLuyL9VIhe9+XeiZjwV8Pj3CFvfVId0/Lo= Received: from Tumashu (unknown [218.92.14.78]) by zwqz-smtp-mta-g2-0 (Coremail) with SMTP id _____wBnZa2lFepjIU2QDw--.14440S2; Mon, 13 Feb 2023 18:49:09 +0800 (CST) From: Feng Shu Date: Mon, 13 Feb 2023 18:49:09 +0800 Message-ID: <87v8k5on6i.fsf@163.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-CM-TRANSID: _____wBnZa2lFepjIU2QDw--.14440S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxCr4fXrykXrykurWfKF1rJFb_yoWrZF4xpF s0kr45Ka48XrnayrWSgF42934YgFZ5Ar4Svwn7Z3s2yw4rKFyIvry3tFy5uF17WF17Cay3 Xw48XFWrWr4UK3DanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07Uv1v-UUUUU= X-Originating-IP: [218.92.14.78] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/xtbB0w0V1FXlx-GD1gAAsM 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 455305ffd5f4e0bca239c8fc0f65f0a1f36ba8d0 Mon Sep 17 00:00:00 2001 From: Feng Shu Date: Sat, 11 Feb 2023 10:55:47 +0800 Subject: [PATCH v8 1/2] gnu: Add jwm. * gnu/packages/wm.scm (jwm): New variable. --- gnu/packages/wm.scm | 107 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 37fbf88e99..14dc3a0988 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -2904,6 +2904,113 @@ read and write, and compatible with JSON.") capabilities. It is heavily inspired by the Calm Window manager(cwm).") (license license:bsd-2))) +(define-public jwm + (package + (name "jwm") + (version "2.4.3") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/joewing/jwm/releases/download/" + "v" version "/jwm-" version ".tar.xz")) + (sha256 + (base32 + "1av7r9sp26r5l74zvwdmyyyzav29mw5bafihp7y33vsjqkh4wfzf")))) + (build-system gnu-build-system) + (arguments + (list + #:tests? #f ; no check target + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-example.jwmrc + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "example.jwmrc" + ;; Ignore existing menus in example.jwmrc. + (("") " -->") + ;; Adjust xterm path in terminal menu item. + ((">xterm") + (string-append + ">" (search-input-file inputs "/bin/xterm") + "")) + ;; Replace xscreensaver with xlock, which has been configured + ;; well by desktop-service. + (("xscreensaver-command -lock") "xlock") + ;; Adjust icons search paths. + (("/usr/local/share/jwm") + (string-append #$output "/share/jwm")) + (("/usr/local/share/icons") + "/run/current-system/profile/share/icons") + ;; Include menu created by mjwm command. + (("" all) + (string-append + all "\n " + "" + (search-input-file inputs "/bin/mjwm") + " --iconize --no-backup " + " --output-file $HOME/.jwmrc-mjwm-guix" + "\n " + "" + "$HOME/.jwmrc-mjwm-guix" + "\n"))))) + (add-after 'install 'install-tango-icon-files + ;; Copy icon files used by example.jwm to share/jwm dir, this way + ;; may be better than adding tango-icon-theme to inputs. + (lambda* (#:key inputs #:allow-other-keys) + (let ((icon-dir (search-input-directory + inputs "share/icons/Tango/scalable")) + (icon-install-dir (string-append #$output "/share/jwm"))) + (for-each + (lambda (icon) + (for-each (lambda (icon-file) + (install-file icon-file icon-install-dir)) + (find-files icon-dir (string-append "^" icon "\\.svg$")))) + '("calc" "email" "exit" "folder" "font" "help-browser" + "image" "info" "lock" "reload" "sound" + "system-file-manager" "utilities-terminal" + "web-browser" "gnome-settings" "applications-.*")) + (with-directory-excursion icon-install-dir + ;; tango-icon-theme have no applications-science icon. + (copy-file "help-browser.svg" "applications-science.svg"))))) + (add-after 'install 'install-xsession + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (xsessions (string-append out "/share/xsessions"))) + (mkdir-p xsessions) + (call-with-output-file + (string-append xsessions "/jwm.desktop") + (lambda (port) + (format port "~ + [Desktop Entry]~@ + Name=jwm~@ + Comment=Joe's Window Manager~@ + Exec=~a/bin/jwm~@ + Type=XSession~%" out))))))))) + (native-inputs (list pkg-config tango-icon-theme)) + (inputs + (list cairo + libjpeg-turbo + libpng + librsvg + libxext + libxinerama + libxmu + libxpm + libxrandr + libxt + mjwm + pango + xterm)) + (home-page "http://joewing.net/projects/jwm") + (synopsis "Joe's Window Manager") + (description + "JWM is a light-weight window manager for the X11 Window System. it is +written in C and uses only Xlib at a minimum. Because of its small footprint, +it makes a good window manager for older computers and less powerful systems, +such as the Raspberry Pi, though it is perfectly capable of running on modern +systems.") + (license license:expat))) + (define-public devour (package (name "devour")