Git Product home page Git Product logo

Comments (3)

Grazfather avatar Grazfather commented on May 18, 2024 2

Sample fix:

;; Make alerts show on all screens
(import-macros {: defadvice} :lib.advice.macros)
(defadvice alert-all
           [str style seconds]
           :override alert
           "Replace core.alert with one that alerts on all screens"
           (each [_ screen (pairs  (hs.screen.allScreens))]
             (hs.alert.show str
                            (or style 1)
                            screen
                            seconds)))

from spacehammer.

agzam avatar agzam commented on May 18, 2024

Personally, I don't use more than two displays at the moment, but I'm sure a few people probably would like this. Also, it seems we currently show the HUD only on the main screen (that's the default behavior of hs.alert.show), maybe we should also have an option to make it appear on the active screen (where the mouse cursor is). So, perhaps an enum, with values like main, active, all.
Thank you for the idea and for the kind words.

from spacehammer.

jaidetree avatar jaidetree commented on May 18, 2024

If feel this would be best tackled via #72 or as a config option as I had experimented with this prior to the refactor and found it was obtrusive when watching fullscreen videos on another screen while looking up a word definition in Alfred for instance. If you feel this would make a better default, then the advising system would at least allow me to make it work like the current behavior without having to replace the whole call chain.

from spacehammer.

Related Issues (20)

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.