-
Notifications
You must be signed in to change notification settings - Fork 862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use human friendly monitor names #1272
feat: use human friendly monitor names #1272
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
current impl is awkward just start screenpipe and look what gets in ocr_text app_name, it captures only background window for some reason |
opened mediar-ai/xcap#3 to bump our xcap fork to version 0.3.1 (the one with human friendly names), but added the same stuff that we had before to set if something was focused or not. to test this on your screenpipe, change your screenpipe-vision/Cargo.toml:92 to: [target.'cfg(target_os = "windows")'.dependencies]
windows = { version = "0.58", features = [
"Graphics_Imaging",
"Media_Ocr",
"Storage",
"Storage_Streams",
] }
xcap = "0.3.1"
[target.'cfg(target_os = "macos")'.dependencies]
libc = "=0.2.164"
xcap-macos = { package = "xcap", git = "https://github.com/ologbonowiwi/xcap", rev = "af2b896" }
cidre = { git = "https://github.com/yury/cidre.git", version = "0.5.0" }
[target.'cfg(target_os = "linux")'.dependencies]
libc = "=0.2.164"
xcap = "0.3.1" This will install |
any idea whats the behaviour of this on windows? |
not sure, but I guess doesn't change much from what we currently have, since the fork is used only on Mac |
Screen.Recording.2025-02-05.at.5.34.38.PM.movits only recording background window? |
how did you built the app? with the xcap version on this PR or with the one I sent on my other comment? |
@louis030195 can you give some clear instructions on how to test this? I checked out to main but everything is Btw, changing this to draft since you said we need the custom focus thing from the xcap fork. ps: please test mediar-ai/xcap#3 to see if it's what expected. if so we can just merge it and update here. |
currently we: by default capture only focused windows (eg mouse within window) have an option to capture also unfocused windows (eg windows where mouse not in) (useful if you are running "agent pipe" like linkedin and want to keep track of what the agent is doing, or for example if we implement a scrapping agent for example that goes to your X and profile and look at your feed to extract market insights from the agent's screen, while does not require any auth token since you're already logged in unlike cloud scrapping stuff) we store the focus status in the db (atm always 1 because we capture only focused windows) i have no idea whether windows and linux have same UX than macos what we should do:
i'd be happy to put a bounty on this, mostly some db migration and plumbing on the search queries and server.rs thing - can change search pipe UI later if necessary |
Ok, I should have tested before saying. After testing nashaofu/xcap master version, it focuses only on the window that is actually open. I ran
if what we need is to capture only the open window, we should go for nashaofu/xcap, a.k.a original xcap mediar-ai/xcap#3 or the master version of the fork (commit 965bc99), both of them have the same logic, thus shows more than one window focused. considering
and
capture_unfocused_window is false , on Mac, it'll check against the id and then window.is_focused . while on windows and linux checks only !window.is_minimized (not considering the monitor id which is the same condition in both cases)
as recording everything as much as is not minimized is the behavior for linux and windows, and I removed the different if that's not the intended behavior, let me know and please give clear steps on how do you want to proceed. a few alternatives:
|
ps: additionally, discussions on focused or not, improve experience of pipes to search through focused/unfocused, set the app to record focused/unfocused/both, should be handled on other PR/issue imo. I think the discussion diverged a bit (and a lot of effort was done on my side outside the original scope of the issue in terms of going through the codebase and running a lot of tests both on screenpipe, original xcap and fork xcap to understand what's actually happening) from the original issue, which was about the monitor names being human friendly. I think we should focus on having the monitor name issue closed then we can discuss other edge cases and expand from there. |
i agree to do just name for now, i don't want to have to maintain xcap fork, we should upstream things somehow and depends on their main branch can you make this PR rely on xcap if not possible then open another PR for the focus use case first and we will do this PR later |
Moved this to draft again. Opened nashaofu/xcap#190 to tackle the focus issue |
@ologbonowiwi is attempting to deploy a commit to the louis030195's projects Team on Vercel. A member of the Team first needs to authorize it. |
nashaofu/xcap#191 merged and this PR is ready for review again. |
@ologbonowiwi great work! just to clarify this is related to focus and not the display name right? i don't see any new property for monitor name |
both @louis030195. this fixes the focus but I didnt changed the public API on xcap, so we dont have to change anything. everything that used the experience should look the same as fork (in terms of having updated is_focused |
/approve |
@louis030195: The claim has been successfully added to reward-all. You can visit your dashboard to complete the payment. |
/tip $100 @ologbonowiwi thx for this |
@ologbonowiwi: You just got a $100 tip! We'll notify you once it is processed. |
https://github.com/mediar-ai/screenpipe/actions/runs/13349168810/job/37283407374 ![]() i guess this was not tested on windows |
/tip $300 @ologbonowiwi thanks again for the digging around screen capture! |
@ologbonowiwi: You just got a $300 tip! We'll notify you once it is processed. |
🎉🎈 @ologbonowiwi has been awarded $100! 🎈🎊 |
🎉🎈 @ologbonowiwi has been awarded $300! 🎈🎊 |
/claim #1245