From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KIqvG8ZcPWNn8gAAbAwnHQ (envelope-from ) for ; Wed, 05 Oct 2022 12:30:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CBbfG8ZcPWMC5wAA9RJhRA (envelope-from ) for ; Wed, 05 Oct 2022 12:30:30 +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 0D42128772 for ; Wed, 5 Oct 2022 12:30:30 +0200 (CEST) Received: from localhost ([::1]:58868 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1og1fZ-0003EW-3l for larch@yhetil.org; Wed, 05 Oct 2022 06:30:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1og1eo-0003Bf-MI for help-guix@gnu.org; Wed, 05 Oct 2022 06:29:44 -0400 Received: from tobias.gr ([80.241.217.52]:40644) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1og1el-0007So-5W for help-guix@gnu.org; Wed, 05 Oct 2022 06:29:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=QnMlCIS6y2E0g LIG88agdURgb90S2JF55J7amnpW6j8=; h=references:in-reply-to:subject:to: from:date; d=tobias.gr; b=RBg09L/CnF6X/cdYGlCZR9HGR/NEYvaDMdSMsBlY2Ptw 8XJUSLp/zUr4U3YReHWpY0WW/wBei8O4OGOvlk/DzPyvWTbwPcOkk1rmN8P0IkCQ/GUwVE RH5Kyqh1iOFdgYx18FO2ezUKzsTqhDSs/SgnPos0SSAKXy0BDtHXJv2rFihMU+obd/m+Xt peLD4h+Gn3KNzsUSQqXJoMi/lWRWppGqtRSmvuRK6KCsz9XkU6/ti8ItBLSANPriLxNG0r X9WPvBIWecExuFNqBrftYP2ST30Be4cvlvoZcd1fRJtfGlNFFPJlo+TcRp/ociWFaXCJBV KQ3r2FyL4huy3jpX9A== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 19537c9f (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 5 Oct 2022 10:29:27 +0000 (UTC) Date: Wed, 05 Oct 2022 10:29:30 +0000 From: Tobias Geerinckx-Rice To: help-guix@gnu.org, jordi Subject: Re: bash scripts in Guix question - suspend ? In-Reply-To: References: <871qrnk61s.fsf@laura> <871qrnj5wu.fsf@gmail.com> <877d1eapma.fsf@laura> Message-ID: <5BE0CFD5-E941-445E-B011-EEEFA6BE9DF3@tobias.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Autocrypt: addr=me@tobias.gr; prefer-encrypt=mutual; keydata= mQINBFVks2ABEACjGBPhWf/qx0L9OhEIrAFTimo5dHa1FLy0AHaHvxmwYSIdJmERYGiNle1rcOvw cFRtu8KJUsrs27Vgoso3qHJpghVitUUf0v3ZuXQT9kfuQLz1Y8pyMzHwVFMLiJVj4Z3y7CJk+xyZ cpSAMbyPINbFVEhsK+z+8ojVGuaiucZkib6b67ySG6Pp1bon8xVvosj71ZRjfXh1t4X8laWO7fQq itT9lmc6DxbE/4vIhR+Vb2MblaA+DyHoNHGGao89h4CO99lfzWzsux41DnEG9d317sJRQTig6Wja EKHXZRA9FbfogD4SDa2uQYCpTJpsVjAyZyu2fuJ+t0zJJ+Ai9qDY87P6hOyd+/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oVen6tb FvH44zpCxubn23ABl9YIzwvJC++r+H2qLdLpy0cfITiZadZ74Ae0aosNw7XARS6OY+A03BfXyPiI 2oW0jf/PdH9sh2mQrQxIQJ5cZz6Z3X20MFRvYmlhcyBHZWVyaW5ja3gtUmljZSAodG9iaWFzLmdy KSA8bWVAdG9iaWFzLmdyPokCNgQwAQoAIBYhBPW8VTTDbwCHs5027xydxP6523xLBQJZUuJkAh0g AAoJEBydxP6523xLwEoP/iaVWdICefmaZ+bkdUg6hwTKxSPlYdLoaCxYI5V2NnZYXG0dy47E7WJP 4EmTDldcne4UG5NyCgXPSMZDNMqcddEMNbmlssTcLKyu6R/VvTcuL3pEhNoLzm9t2IHR/YGAHJIc pyfmJ3amGSlsbo6s6Vv+mbrJTRPIDpLUst/PDoGYihcSKTxoIw8RtNAy+FAliIdJ8ZuPA3BTxQei sQzgWJo68UInvnFp4juq0zupNDqKddemI8kZCRK/fFPBDD71nqiSJjx2tvbjkTiPU9gmTp7Nulgj ZATZIt0pUhn87w15ItzrsiEjTYCMTmHY5wnvyLarFKZLzQjgUJfsbv4WRJRnX0/EEJWMvMtSdtXL fjwTLrSGAr4vh13PMfE6uVkGkeCV/8BfGJqRE4zkI+QOVILw6VSAP6sdtGSGb52bcCuPj7p9zGIB IuKFudT+DzUb5uV2jbahSjJ8X4Ak/ruG2Hv3iICZawDpHV1JDNgY910KNi5T6gFrjFA2G6aiXDCO SlToLPnPBYH85UVOsp2VykE9AREKS7a7o76cibjwBNN+4xJqJRxhs9YH4JKzE3w/ptVnx49QFBGc pjPkzMTs7DtanD8iqL4J6afnycv9KqIlNJONaMHvzxeunV7QCsoF6DdusZJKFMexiDBaOFUmGFFS XfzK2oNjknx1QApyTPvh Received-SPF: pass client-ip=80.241.217.52; envelope-from=me@tobias.gr; helo=tobias.gr 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664965830; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature:autocrypt:autocrypt; bh=QnMlCIS6y2E0gLIG88agdURgb90S2JF55J7amnpW6j8=; b=jVSfRacXRkSM8JbHDx/mIRqTY6OJiRznAggZS8fzgYcQAtPnf6FB4v2Y+vQtnICKgTMfQK +hkw7jlD8aiX1QxGG12SEwja0G/M9SkNh3C3KUQPKuisVCxEARRCIkwP+RAPCbZpRHrYMC 8RVGODF8K2GrbZ3rx+p9IlKyif3tq0jlXXvB4Cs8ANpqRGBO2/fb9HL6K8pNAN7Lcg5S2P Vl6ER090vxp26Z/Od2ISPxqqnnfyKNAf9uJ+xaJOuv5K4c780/8g5kR0109qPuJbp3UxBx XH1fxSzOCOZfyrnS0aw8po5KfuHEGW13Lr/4XYuGmAfJjj6kiQGNKVgSds4MGw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664965830; a=rsa-sha256; cv=none; b=YhEedXPPTl8Te7UjDgy7LG2jVUTL11XsyMBPIJ2TJsPssKJyLMYjYnEBuvACB5arfNx67y 2qOaU6y68wY38bxxoT+YmSfcDRD932lk5DoujovKTUxcMQi61Stx7PzDiMUe/mqhxltY+w brRW1zU6Sc2CZrmV5Iu4mzqxrr53xQcY2jAzcciiOYmUFPZ8Qu/4p0dG4CVz9turxx4Z2G n3rj7J70FCsxOc7Jw152BYkvmMBsduHeWoy6NlUHbAOjCH/wttT/T146MHXjoCH9+voxOc Pw5tdwuSwEeSxDxHx9XvYz9w+DTzZD2bhAMnoqquOm+FjQ9MuSD7Q56RO/frJg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b="RBg09L/C"; dmarc=pass (policy=reject) header.from=tobias.gr; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.36 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b="RBg09L/C"; dmarc=pass (policy=reject) header.from=tobias.gr; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0D42128772 X-Spam-Score: -1.36 X-Migadu-Scanner: scn1.migadu.com X-TUID: wACaIgHVdfjG Hi jordi, >I'm puzzled, as long as 'loginctl suspend' is working in the shell But '~/=2Econfig/i3/i3exit loginctl suspend' isn't=2E Judging by your original snippet, you've mashed two commands together: you= meant either ~/=2Econfig/i3/i3exit suspend or loginctl suspend But nobody here can tell you for certain how to call your 'i3exit' script = without knowing what's in it=2E Aside: you seem to be writing a wrapper script to wrap a wrapper script to= call a wrapper for writing to /proc=2E Is that necessary? It can make th= ings hard to follow=2E Kind regards, T G-R Sent on the go=2E Excuse or enjoy my brevity=2E