From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 XwyWLEGyXWPxvwAAbAwnHQ (envelope-from ) for ; Sun, 30 Oct 2022 01:07:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IEW7KkGyXWMabAEAG6o9tA (envelope-from ) for ; Sun, 30 Oct 2022 01:07:45 +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 4EF0E3D89E for ; Sun, 30 Oct 2022 01:07:45 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oouv4-0005fi-6l; Sat, 29 Oct 2022 19:07:14 -0400 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 1oouv3-0005fa-8U for emacs-orgmode@gnu.org; Sat, 29 Oct 2022 19:07:13 -0400 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oouv1-00075s-BV for emacs-orgmode@gnu.org; Sat, 29 Oct 2022 19:07:12 -0400 Received: by mail-lf1-x12e.google.com with SMTP id be13so13854719lfb.4 for ; Sat, 29 Oct 2022 16:07:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MyUuYBgpuy1in+/R7JKVzAat3enKjgSXl1sW7MGe1lc=; b=jhVNHPoAxv+1fUt6DXbyBxP9fwRAoWKEVUeOEBJA0hHxXOvxuAGkHuCIHWEWMG4srk Lj3pTBArO0xOupINIvuw6y+YgkOTMeQ95q0BKnYZA5ytMG1Rclia5Hk9pbTqnw1QXTPc bhp6KN1PFaDrb9HB6ess72YEXxmgFhqWbGEmXi0lX+5vJSJDy7FTkA/CRdjTyYyTNbU0 zmDlQFneLTE6v+xwZtkD9L1vKVxqEjZ8cBaxiyqoXrQyqxIFfd8FTrHTsWVAL2yHOfG7 tb93ZsZx7JUgBzfKo+qMX7idjUL5CpHXwVK9Bvqmg7ybB67DlC+gJJ4/7J02AJRYmWqC 26lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MyUuYBgpuy1in+/R7JKVzAat3enKjgSXl1sW7MGe1lc=; b=IaLpiJ248Dk1Sx9gNSZ/PxT6jqwT3lYs5uD3bx2nvftdlQWROirosBKgY7ImrAZeke pi8AKaIT7I+WuvpCKyrrx334/HnCQcw/TQO4hx9JK/BIg1XmU296Z7VWiKRmUVjWr+h6 5H5puPnqCZQrJsug178g5uuZMy7ajXxjIr8UvrcO6gRhgrY86xGO/0XeZk1AVmJTp54j cWX+XCjcWsJuKWXl0vWXnkhjUswJozWj7L3uDt2K1FxNXyUJBB/ZcynHvO1sxkfXb4x+ rT8liz00JoHoE5C/B7gJdzt73gzlShuUpPSOxPHaNai8mvMfjLWdDqkIMt7Yg1KVqHRi EBJA== X-Gm-Message-State: ACrzQf2MQ/1fB1h0ul+DQku9zbbjsTWKYmdqM27+znSa6LldbcRsebhZ kVFfZnHcaoKD0eDNCr45Rdip2jV43oot6r7QbE0= X-Google-Smtp-Source: AMsMyM7SBPsbFvpz4gG9OZZ3dZt3rEzfTpkXNzRJ78VQdmGM0XvF6/hwvqGH919E/giTLhdWrCoK62njtgUxtZQ1zV4= X-Received: by 2002:a05:6512:ba9:b0:4a2:5db3:8c4e with SMTP id b41-20020a0565120ba900b004a25db38c4emr2290793lfv.664.1667084829145; Sat, 29 Oct 2022 16:07:09 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6520:4af1:b0:22a:e96a:7f9b with HTTP; Sat, 29 Oct 2022 16:07:07 -0700 (PDT) In-Reply-To: References: <87tuw31iub.fsf@mm.st> <87r0zelo7e.fsf@posteo.net> <875yg7qiyb.fsf@localhost> <87bkpvl4go.fsf@localhost> <87czabjkc1.fsf@localhost> From: Samuel Wales Date: Sat, 29 Oct 2022 16:07:07 -0700 Message-ID: Subject: Re: desktop notifications (Re: idea for capture anywhere in x) To: Max Nikulin Cc: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=samologist@gmail.com; helo=mail-lf1-x12e.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org 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=1667084865; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=MyUuYBgpuy1in+/R7JKVzAat3enKjgSXl1sW7MGe1lc=; b=RGFgHXKqsgXHTW6/unyT/qBZdDmP4pE49K4Hg4NqFmt22PzFqjdJLXo8mp1qZfV5UbvKA7 625gc+JnGqCLoKlndJI3M5xikSbFncKKxb5gOIxtrP9r4idji0YIdqApxxXx/DFufMhAIa KR3wHbZEU7GNNdg9VI721Anyi44nBOfqqQv1dF0JH7XpAqUASrhtiSzhVtWICEZqwLOB0W K/ASoZe4zU/dIzBavBu+FLrYVyblrkMtmDfIB8wiftN9qihew3JSS9E5/8UmMAxJ1KVY7W hyfrUSObXm+hplMak5G0eyZNgbT7kgsw0rviXaeom9no3GypCcd/FS3BvJL4GA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667084865; a=rsa-sha256; cv=none; b=SXXUQNKvimuhRdlfyB82aOxt/6gVmfHRj2F6mSB9pbSdTrL5PeUHMDVkceRmRw4XmR4wox 8mi/4BAqc91dQGJ3hXpJd9Dp5ZPy5IkAmhLqogikgvEzuhqf8NZbaj0r+R56fxKzUAURDV EZEuFvb1Ch+Jl4TSkFdfT5+IsXMrPuQ6jfh/017Uuw/0DdMFCoYMoLASXHCr99EuMKbA8p FKeE6FWf24Zp9k21QVRXfpg+u0UjHRadfXoFOEEFF8Z3nptQxQ4BZkbXRZOvDkQzt3G82s /ShK7gkJwup6MsI98M7AcLJ9jgvRWNa/iQtfNWrajVdnkVpKqkrXCukThBEP2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jhVNHPoA; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.24 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jhVNHPoA; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4EF0E3D89E X-Spam-Score: -5.24 X-Migadu-Scanner: scn0.migadu.com X-TUID: t9K9LfxWYoxZ i am lost in a sea of partial solutions and hints that myb rain cannot process at this time, despite their straightforwardness. i do like the idea of having confidence that a capture worked thgouh very much. perhaps some fuction in org-capture-before-finalize-hook could raise emacs for a tiny period of time or something, in the case that it is invoked when emacs is not visible. if so, and idk if poss, i would have to try it to find out if it wfm. then i wouldn't hafe to keep trying notification tools ad try to get them to have sufficient fonts colors sizes etc. and work. :) On 10/29/22, Max Nikulin wrote: > On 29/10/2022 11:59, Ihor Radchenko wrote: >> >> Functions in org-capture-before-finalize-hook have access to the >> contents of the capture buffer text. So, one can call `start-process' to >> run notify-send shell command and put the actual captured text into the >> notification (displayed briefly or for longer time according to the >> switches passed to notify-send). > > I like this idea. Reading your message from Sat, 29 Oct 2022 02:59:51 > +0000 I decided that for yourself you set up an Emacs frame as a pop-up > to display capture result. However I believe it is better to use either > org-clock or Emacs notify functions directly instead of notify-send tool. > > Samuel, I suggested notify-send tool as a means to debug notifications > in isolation (without `org-capture'). Have you managed to configure > notification-daemon, dunst or some other alternative to get acceptable > appearance and proper timeout before notification disappears. > > > > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com