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 KJfwNhQE52OYfAEAbAwnHQ (envelope-from ) for ; Sat, 11 Feb 2023 03:57:24 +0100 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 UPzlNhQE52MeZwEA9RJhRA (envelope-from ) for ; Sat, 11 Feb 2023 03:57:24 +0100 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 9209E3F9A9 for ; Sat, 11 Feb 2023 03:57:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQg4W-0001Zu-Qt; Fri, 10 Feb 2023 21:57: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 1pQg4U-0001ZC-KL for guix-patches@gnu.org; Fri, 10 Feb 2023 21:57: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 1pQg4U-0002XK-6M for guix-patches@gnu.org; Fri, 10 Feb 2023 21:57:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQg4T-0000hI-NF for guix-patches@gnu.org; Fri, 10 Feb 2023 21:57:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61056] [PATCH v6 1/2] gnu: Add jwm. References: <20230125111514.5194-1-tumashu@163.com> In-Reply-To: <20230125111514.5194-1-tumashu@163.com> Resent-From: tumashu@163.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 11 Feb 2023 02:57:01 +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 Cc: Feng Shu Received: via spool by 61056-submit@debbugs.gnu.org id=B61056.16760841742608 (code B ref 61056); Sat, 11 Feb 2023 02:57:01 +0000 Received: (at 61056) by debbugs.gnu.org; 11 Feb 2023 02:56:14 +0000 Received: from localhost ([127.0.0.1]:38425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQg3h-0000fy-PR for submit@debbugs.gnu.org; Fri, 10 Feb 2023 21:56:14 -0500 Received: from m12.mail.163.com ([220.181.12.199]:58092) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQg3b-0000fG-Jk for 61056@debbugs.gnu.org; Fri, 10 Feb 2023 21:56:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=K3XxF cQt7gE70NxDiCkjI2hbfm5xMl5Zxcol0LmTZJs=; b=ezx2lVkelFn+LxMOPlKN0 hFO4dyRcVk5FLZ2FYHkcHg4UJpLTAqklOl4/05aJ1np0lXnUANfgbVq039PmzlyV G98BWQinSOUETfpkZ8J8W3omVyOA0oPuJ/+ta/1iT8YtEcOc+qIifnMFXZ7Etwfg ZDuOjJgXMqwL1Vu2FN/RbA= Received: from localhost.localdomain (unknown [114.237.132.223]) by zwqz-smtp-mta-g4-1 (Coremail) with SMTP id _____wBHrX61A+djGFdoAw--.47325S2; Sat, 11 Feb 2023 10:55:53 +0800 (CST) From: tumashu@163.com Date: Sat, 11 Feb 2023 10:55:47 +0800 Message-Id: <20230211025548.21956-1-tumashu@163.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _____wBHrX61A+djGFdoAw--.47325S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxCryUJF4rXFWxJw1kWF13CFg_yoWrWF1fpF s09r4fKa48XrnayrWSgF42934YgFZ5Ar4Svw1xZ3s2yw45KF1Ivry3KFW5uF1xG3W7Cay3 Xw48XrW5ur4UK3DanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0pRrR65UUUUU= X-Originating-IP: [114.237.132.223] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/xtbBERgT1FaEMoLfXwABst 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676084244; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=K3XxFcQt7gE70NxDiCkjI2hbfm5xMl5Zxcol0LmTZJs=; b=KlsSX7a2R4Mjjdp4S1VD49nZU4/9gE/+VFbWp+Lm194E8xywMr/kGxpYUpkI2jarnXEQMh D6w0SB178eGkxGnjBzDSEQByv4owYGL5HpV50c9DcGrbT7bs6xBR3XhHhdQ3W5SLUmmPAU ZxhaZVhQ7LerSBfqdQdL+Ycclvl3YF2166bFeYpOmSaL5HukJ0XES7SQXSv5kBwaEPUaXO 4XT8Xmv5tBkjSA6egjocNXSlYgQ4TxB36mU0IqDOG+2BkmFSPa0vE1KkSMZBgYMGyLNxij ukfO38AHiPGv6O1ALSuC/P75rp0OytgIo2mN3AGL99eBL+zVa1Dic6alwDBZaA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=ezx2lVke; dmarc=fail reason="SPF not aligned (relaxed)" header.from=163.com (policy=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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676084244; a=rsa-sha256; cv=none; b=blMvHD5uYy4wKfdCLis1BUe6jrcsd2dScxZZeuB73tQ5+qhwsNsgTkjyKo7S/Im6Z6cjLz bGL4ZSbVVCjVcMl7oFuoQJW0C27ag25vk+TgC0Ko2VWy3ePIWBmI2Vcz4W/xhnNkYGAHH7 ebcTR0w6EdHgDOY6UfKtrU0IDxpKp/XKs8etIYh/wo3KwSdILb+RdRa1XNBO/a3JZoxqk/ apQwlYauz7z34EfPBQzdD0UwD5+F5FCXhBqeSx5UIngjogeAFG9lvm2CIVAybPZzSWXzbb CpUBzRauEFM+R73FvfT+2KY6MJ6TZyfWSRxVRCcmkGSGiJgRiqCVYLZrzfBOnA== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=ezx2lVke; dmarc=fail reason="SPF not aligned (relaxed)" header.from=163.com (policy=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: -0.50 X-Spam-Score: -0.50 X-Migadu-Queue-Id: 9209E3F9A9 X-Migadu-Scanner: scn1.migadu.com X-TUID: wdIWhZQtUecG From: Feng Shu * gnu/packages/wm.scm (jwm): New variable. --- gnu/packages/wm.scm | 104 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 2fd70af07f..0881ba40d5 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -2764,6 +2764,110 @@ (define-public hikari 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$")))) + '("applications-.*" "calc" "email" "exit" "folder" + "font" "gnome-settings" "image" "info" "lock" + "reload" "sound" "system-file-manager" + "utilities-terminal" "web-browser" ))))) + (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") -- 2.39.1