{"id":24905926,"url":"https://github.com/jasonlovesdoggo/displayindex","last_synced_at":"2026-04-17T07:31:28.868Z","repository":{"id":275228815,"uuid":"925475170","full_name":"JasonLovesDoggo/displayindex","owner":"JasonLovesDoggo","description":"A cross-platform Go package to detect which display contains the cursor.","archived":false,"fork":false,"pushed_at":"2025-02-05T03:49:07.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T09:02:18.890Z","etag":null,"topics":["active-display","cross-platform","cursor","display","go","golang","library","linux","macos","windows"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/jasonlovesdoggo/displayindex","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JasonLovesDoggo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["JasonLovesDoggo"]}},"created_at":"2025-02-01T00:36:00.000Z","updated_at":"2025-02-05T03:49:10.000Z","dependencies_parsed_at":"2025-02-01T01:39:24.677Z","dependency_job_id":null,"html_url":"https://github.com/JasonLovesDoggo/displayindex","commit_stats":null,"previous_names":["jasonlovesdoggo/displayindex"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonLovesDoggo%2Fdisplayindex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonLovesDoggo%2Fdisplayindex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonLovesDoggo%2Fdisplayindex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonLovesDoggo%2Fdisplayindex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JasonLovesDoggo","download_url":"https://codeload.github.com/JasonLovesDoggo/displayindex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245931756,"owners_count":20695958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["active-display","cross-platform","cursor","display","go","golang","library","linux","macos","windows"],"created_at":"2025-02-02T00:26:03.595Z","updated_at":"2026-04-17T07:31:28.823Z","avatar_url":"https://github.com/JasonLovesDoggo.png","language":"Go","funding_links":["https://github.com/sponsors/JasonLovesDoggo"],"categories":[],"sub_categories":[],"readme":"# Go Display Index\n\n[![CI Status](https://github.com/jasonlovesdoggo/displayindex/workflows/Test/badge.svg)](https://github.com/jasonlovesdoggo/displayindex/actions)\n[![Go Report Card](https://goreportcard.com/badge/github.com/jasonlovesdoggo/displayindex)](https://goreportcard.com/report/github.com/jasonlovesdoggo/displayindex)\n[![Go Reference](https://pkg.go.dev/badge/github.com/jasonlovesdoggo/displayindex.svg)](https://pkg.go.dev/github.com/jasonlovesdoggo/displayindex)\n\nA cross-platform Go package to detect which display contains the cursor.\n\n## Features\n- Supports Windows, macOS, and Linux\n- Simple API\n\n## Installation\n```bash\ngo get github.com/jasonlovesdoggo/displayindex\n```\n\n## Usage\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/jasonlovesdoggo/displayindex\"\n\t\"github.com/kbinani/screenshot\"\n)\n\nfunc main() {\n\tindex, err := displayindex.CurrentDisplayIndex()\n\tif err != nil {\n\t\tfmt.Println(\"Error:\", err)\n\t\treturn\n\t}\n\tfmt.Printf(\"Cursor is on display %d\\n\", index)\n\timg, err := screenshot.CaptureDisplay(index)  /* Example how you can use the index*/\n    if err != nil {\n        fmt.Println(\"Error:\", err)\n        return\n    }\n\t// Do something with the image\n}\n```\n\n## Requirements\n- **Linux**: Requires X11 development libraries\n  ```bash\n  sudo apt-get install libx11-dev\n  ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonlovesdoggo%2Fdisplayindex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasonlovesdoggo%2Fdisplayindex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonlovesdoggo%2Fdisplayindex/lists"}