Comments (3)
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.
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.
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)
- Spacehammer.el causes to doom/emacs to "blink" HOT 3
- unknown global in strict mode: ?. HOT 1
- Once updated to fennel 1.0, 'fennelview' missing. HOT 4
- Edit-with-emacs is broken in Hammerspoon 0.9.93 (6148) HOT 2
- Properly use history in windows.fnl
- _coresetup.lua:662: module 'core' not found HOT 10
- Spacehammer stops accepting alpha keypresses HOT 2
- Cannot emit backslash HOT 1
- my hotkey wont work, when i use the hotkey in the console my counter wont go up HOT 3
- Update advice system to not require defining advisable functions HOT 1
- Vendoring fennel? HOT 2
- Problems on OSX 13.0 Ventura HOT 1
- Delay between the modals HOT 16
- [Question] `fennelview.fnl: No such file or directory` HOT 2
- toggle app stopped working properly 🥲 HOT 3
- Update fennel to v1.3.0
- Flaky startup HOT 1
- Install in a subfolder
- Show menu only after a delay if no keys have been pressed
- Hammerspoon is eggrediously unstable on macOS Sonoma HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spacehammer.