Comments (3)
If I launch the command from the 2nd of two monitors it'll take the overall width of the combined displays and initiate the HUD on the second monitor.
I don't have a second monitor for a few more weeks because life 🌈, so my ability to help is a little limited.
Either way, these details would help:
- Clarifying: This only happens when you start hudkit from the second monitor?
- Do you have a screenshot?
- What desktop environment or WM are you using?
- When you run the example in a terminal, what output do you get? Do the monitor positions and sizes it reports look right there?
feature request) add the ability to only display HUD on default monitor when multiple are present via a command line flag
Good idea!
bug report) HUD incorrectly estimates size and position when not initialized from the first of a multiple display setup.
This refers to the same problem as the first paragraph, right?
from hudkit.
Finally got around to looking at this with my brain turned on.
Excuses excuses: On a previous machine I couldn't repro this at all, and Hudkit would always get its window positioned at absolute 0,0. On my current machine, it would position at the top-left of the window it was started from which is wrong (as you observed). 🤷
from hudkit.
Oh right, there was also a feature request.
add the ability to only display HUD on default monitor when multiple are present via a command line flag
Nah. Too complicated. You can instead hide or show stuff in your web page's context, by reading the Hudkit.monitors
variable from JavaScript and positioning your HUDs there, then hiding or showing what's on the appropriate monitors.
from hudkit.
Related Issues (15)
- Hot cool demonstration GIF in the readme HOT 2
- multi-monitor support seems to not work HOT 5
- "Frame load interrupted" error when loading pages directly from filesystem, with the `file://` protocol HOT 1
- Compiling with Nix toolchain HOT 4
- shell subprocessing + keyboard support? questions HOT 6
- Hudkit going behind windows? HOT 3
- Overlay extends off-monitor HOT 2
- On WSL2: Cannot clickthrough example hud HOT 1
- Feature request: Recognise keyboard button presses globally, and pass them to addEventListener in page JS HOT 1
- Continuous integration testing HOT 6
- Research brain-dump: Possible implementation paths for handling input events while also passing them through HOT 1
- Can I use this to display a website as my desktop. HOT 7
- The JS API is callback-based; async/await would be prettier HOT 1
- Feedback on using with Linux Mint (mentioning clang in dependencies is necessary?) 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 hudkit.