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 wPqVCZICXmOsdwEAbAwnHQ (envelope-from ) for ; Sun, 30 Oct 2022 05:50:26 +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 6LRoCZICXmPgagEA9RJhRA (envelope-from ) for ; Sun, 30 Oct 2022 05:50:26 +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 DAFA739556 for ; Sun, 30 Oct 2022 05:50:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1op0GC-0002e7-S0; Sun, 30 Oct 2022 00:49:24 -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 1op0G9-0002ds-8m for emacs-orgmode@gnu.org; Sun, 30 Oct 2022 00:49:21 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1op0G6-0002uy-FG for emacs-orgmode@gnu.org; Sun, 30 Oct 2022 00:49:20 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1994E240103 for ; Sun, 30 Oct 2022 05:49:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667105356; bh=zKoYAYA8p1NSYuWfcEI/8xWcjY3q1r+NvFq9teGB/FY=; h=From:To:Cc:Subject:Date:From; b=JCKjoMP6aZ37W+l4gAloA21bCsgrUXBUCUycrVkzUZw/SJnPsV4hdowinm8umyrw+ 0U/AfXCiH7Ym3CJIQB8X6W/7r8NtfvZBo6uazxu1yAtent1tc1x8jzhK7aDZxTsIep 4HKH1N4lWjjcBHvcE9KuB9noXfjl6Uybd592QRa+hqEEIerbxlWe3XBD3xi61LCGZk R/o54ty1awgqA9vnr6AMRNJY3MRMZ+z8J7auDPhgmlBvEHxdmAYTfuFDTCsQRohM3/ d7xCnCMESROBUqX2rsTaT8UunNgZXaUXiTBnOwNTuB/CUGiPOk2wPhMctqrr5u7WEL qv4KyojYehwhg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N0P2L5hS7z9rxF; Sun, 30 Oct 2022 05:49:14 +0100 (CET) From: Ihor Radchenko To: Samuel Wales Cc: Max Nikulin , emacs-orgmode@gnu.org Subject: Re: desktop notifications (Re: idea for capture anywhere in x) In-Reply-To: References: <87tuw31iub.fsf@mm.st> <87r0zelo7e.fsf@posteo.net> <875yg7qiyb.fsf@localhost> <87bkpvl4go.fsf@localhost> <87czabjkc1.fsf@localhost> Date: Sun, 30 Oct 2022 04:49:58 +0000 Message-ID: <87mt9dapah.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de 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, RCVD_IN_MSPIKE_H2=-0.001, 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=1667105425; 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=XyKawLhSnjFr8clElWJrMSfK4cAyBznJ/Kw8/Coj/04=; b=AWkqw9TeLtk+493d++RTfysjIvqoqxIvjwKg/NiqEfAme6Gkq8nH/dXaGMKgOcLJW3xcMi C8wihUcM7x3c0e2uSVXTLJpfQnMMwpJrfag0iAWQ56gl/QFRo4/n3rJV57KC2/8KeOD0Wh f1+V7of1NvQsVx+5D3l65IAIT4mfNC1OeAvXDUjdGyJ51j32v0wD6Bky0qlCmH0Qp9ay9W cZCyT+jhq0PP0XXXznUXLWzT2KBURl/VdPHvqokckHSVIvuQn+5DB5tmQnqAzm/h42SrM4 H9+EczLEeaG11qUNCMpbQlnu8Z2eqEDR3QLG7ZZFLHJQ/7dArvwcvH+L7YPaCA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667105425; a=rsa-sha256; cv=none; b=AI/tT2IwLRuUwsb2SkW53B/rGfhOuMxcrLOR+o55/gCgA/1EVCdsSwYusP4Lqq6nvh//K6 veMNxHKkJ/BXeWAVtLa/14S5tFEyGbleCcKI7S6SgQc95wBRSKy6WF9ZTzQKmjWe65DaHl lzpx0NZTVZG7m5NoeqG0b80QAJWJE3G/RB3B68HFNj3UOeKP5AB9ytlTini5nVqXmfNH8v gHyyN3qFH5FYT+wOG4J0l8PrAHbUEQeRBpkJQuM8tW4C/49qhgWGZbW92AcXxxzf3+uQnW GcLs1uCc5VIIsh5pN+dutY5U6zaq6sHtA7WejJNQN/s0FMMCji5gLdjhXITDNg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=JCKjoMP6; dmarc=pass (policy=none) header.from=posteo.net; 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: -3.44 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=JCKjoMP6; dmarc=pass (policy=none) header.from=posteo.net; 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: DAFA739556 X-Spam-Score: -3.44 X-Migadu-Scanner: scn1.migadu.com X-TUID: EQiuSsytlTbv Samuel Wales writes: > 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. :) I use the following code to raise helm frames: *** Run/search menu via Emacs helm #launcher #runner Inspired by [[id:Mattduckemacs_as_fuzzy_launc_and_alfred_replac6c6][[Mattduck] Emacs as a fuzzy launcher and Alfred-replacement]] #+begin_src bash :tangle ~/.local/bin/emacs-helm-menu :shebang #!/bin/bash if [[ "$(getactvwindclass)" == "emacs.Emacs" ]]; then # Relies on my key bindings xdotool key --clearmodifiers --delay 60 alt+l e h; # release any pressed modifiers xdotool keyup super alt ctrl shift else emacsclient -c --frame-parameters="((title . \"Helm frame\") (unsplittable . t))" -e "(let ((inhibit-message t) (helm-full-frame t) (helm-use-undecorated-frame-option nil)) (catch :quit (yant/helm-org-ql-agenda-files nil) (when (= 0 helm-exit-status) (let ((fr (selected-frame))) (make-frame) (delete-frame fr))) (unless (= 0 helm-exit-status) (user-error \"%s\" \"Exit frame\"))))"; fi #+end_src You may be interesteed in the --frame-parameters argument to emacsclient. Similar alist can be passed to `make-frame' from Elisp. You can refer to 30.4.3 Window Frame Parameters section of Elisp manual. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at