Code Monkey home page Code Monkey logo

Comments (1)

sinic avatar sinic commented on July 17, 2024

Thanks for your feedback! Judging by the GitHub stats, the mention by Sacha Chua is responsible for most of the recent interest in this package. Since you mentioned EXWM, I think of most of its users as potential users of EDNC as well, but they are hard to reach without spamming the project at places specific to EXWM. Seems I have to rely on word of mouth here.

Since I use exwm and as per my experiments it does not seem frames stack in exwm (though I could be wrong, I'll ask about this), I tried postframe.

This appears not to be possible in EXWM, unfortunately. One can get pretty close to what I think you want without using external packages. With the following function, an appropriately sized window should almost always appear at the bottom (though not at the bottom right) of the frame, and disappear once the notification is closed:

(defun show-notification-in-buffer (old new)
  (let ((name (format "Notification %d" (ednc-notification-id (or old new)))))
    (with-current-buffer (get-buffer-create name)
      (if new (let ((inhibit-read-only t))
                (if old (erase-buffer) (ednc-view-mode))
                (save-excursion (insert (ednc-format-notification new t)))
                (pop-to-buffer (current-buffer)
                               (cons #'display-buffer-at-bottom
                                     '((window-height . fit-window-to-buffer)
                                       (dedicated . t)))))
        (kill-buffer)))))

I deliberately kept the functions in the README as minimal as possible, though, to encourage users to build their personal solution on top of EDNC, as that will be superior to anything I could possibly come up with. Nothing wrong with relying on external packages like posframe either!

I want to propose to add a simple example on how to actually see a notification happening.

Done. Unfortunately the notifications library makes it a little too easy to create notifications that are in violation of the standard (e.g., by missing a default action).

from ednc.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.