Authentication-Results: mail-b.sr.ht; dkim=pass header.d=runbox.com header.i=@runbox.com Received: from mailtransmit05.runbox.com (mailtransmit05.runbox.com [185.226.149.38]) by mail-b.sr.ht (Postfix) with ESMTPS id E335011EFD8 for <~emersion/public-inbox@lists.sr.ht>; Wed, 11 Jan 2023 13:36:54 +0000 (UTC) Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1pFbHh-00GaYU-62 for ~emersion/public-inbox@lists.sr.ht; Wed, 11 Jan 2023 14:36:53 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector1; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=L9mgn0sFONgixrQa+xB/rCXFKsaUitoKrdpuymgbtnM=; b=kJkaoJMpSncr4Ru7110/A2gp8 2qjy0pd+ghrv383vnm3CbZ87P4ZCVbiX1KtIMSvB447yxZaiB3C9OWll6VFWCaSMG6QJV5hdHRGHr 840IqLvtMN4nEsNt2ZlVKF2k4U0PIWT+ect3WwHlCrROjpSVtXnYQfrM2ZJ8cWNz9SWKNLyRtWW+1 /kPnAUm8X7roIuWOvRPYjkqZHz807EM2GyMRDxZzQxOqRvQbhEM1juhvp3CnDud2sgf7g2WR5W/HB qKTpYrUdy3yKSDOvBDW+g2/xeOSS5Lrd7AhY6AUKrTvT5q1UqrxCEGhGZY1yNOqldl2XDIXbKbRkF vwOns5hRg==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1pFbHf-0001L7-PV for ~emersion/public-inbox@lists.sr.ht; Wed, 11 Jan 2023 14:36:52 +0100 Received: by submission02.runbox with esmtpsa [Authenticated ID (698860)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1pFbHX-000413-R6 for ~emersion/public-inbox@lists.sr.ht; Wed, 11 Jan 2023 14:36:43 +0100 From: mauro3@runbox.com To: ~emersion/public-inbox@lists.sr.ht Subject: chayang not working as ret-code is always 0 Date: Wed, 11 Jan 2023 14:29:56 +0100 Message-ID: <878ri9i45x.fsf@rmm6prod02.runbox.com> MIME-Version: 1.0 Content-Type: text/plain Thanks for putting chayang together! I don't quite get chayang to work. As far as I can tell it seems to build fine (clone repo, then build steps as in README). When running it from the command line it dims the screen just fine and, as expected, either exits after the timeout or when I type/move the mouse. However, my understanding is that the ret-code in the latter case should be non-zero but it is zero. Thus `chayang && swaylock`` will still lock on pressing keys/moving the mouse to abort. ``` ...tmp/chayang/build(master) >> ./chayang ### now moving the mouse or hitting a key ...tmp/chayang/build(master) >> echo $? 0 ``` Am I missing something? Let me know if you need more info. Swayloc v1.7, Sway v1.8, Arch Linux