{"id":24216334,"url":"https://github.com/michaelknap/x11-desktop-cube-example","last_synced_at":"2026-06-15T20:31:27.977Z","repository":{"id":205381797,"uuid":"714099860","full_name":"michaelknap/x11-desktop-cube-example","owner":"michaelknap","description":"A simple example of a _NET_WM_WINDOW_TYPE_DESKTOP window with an OpenGL context.","archived":false,"fork":false,"pushed_at":"2023-11-29T09:48:18.000Z","size":2952,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-05T22:48:08.625Z","etag":null,"topics":["c","opengl","x11"],"latest_commit_sha":null,"homepage":"","language":"C","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/michaelknap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2023-11-03T23:16:02.000Z","updated_at":"2023-11-05T19:25:47.000Z","dependencies_parsed_at":"2023-11-07T01:53:26.226Z","dependency_job_id":"efb62c7e-b61b-4fc3-88c4-f8a8427858d3","html_url":"https://github.com/michaelknap/x11-desktop-cube-example","commit_stats":null,"previous_names":["michaelknap/x11-desktop-cube-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/michaelknap/x11-desktop-cube-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelknap%2Fx11-desktop-cube-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelknap%2Fx11-desktop-cube-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelknap%2Fx11-desktop-cube-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelknap%2Fx11-desktop-cube-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelknap","download_url":"https://codeload.github.com/michaelknap/x11-desktop-cube-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelknap%2Fx11-desktop-cube-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34379915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["c","opengl","x11"],"created_at":"2025-01-14T04:15:05.305Z","updated_at":"2026-06-15T20:31:27.958Z","avatar_url":"https://github.com/michaelknap.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# X11 Desktop Cube with OpenGL\n\n## Description\n\nThis is a simple example of an X11 `_NET_WM_WINDOW_TYPE_DESKTOP` window with an OpenGL context. It creates an effect of drawing graphics directly onto the desktop. It works on **X11** and **Wayland** (via *XWayland* compatibility layer).\n\n## Demo\n\n![](screenshots/24fps.gif)\n\n\n## Dependencies\n\nEnsure you have the `OpenGL development libraries` installed. These may be provided by Mesa or by proprietary drivers, such as those from NVIDIA or AMD. In many cases, these libraries will already be installed on your system.\n\n#### Arch Linux/Manjaro:\n```bash\nsudo pacman -S glew libx11 libxinerama\n```\n#### Debian/Ubuntu:\n```bash\nsudo apt-get install libglew-dev libx11-dev libxinerama-dev\n```\n#### Fedora:\n```bash\nsudo dnf install glew-devel libX11-devel libXinerama-devel\n```\n\n## Compilation\n\nUse the provided `Makefile` to build the project and optionally install it (installation assumes you are running systemd):\n\n```bash\ngit clone https://github.com/michaelknap/x11-desktop-cube-example\ncd x11-desktop-cube-example\nmake\n./build/desktop_cube\nmake install (optional install)\n# If systemd:\nsystemctl --user start desktop_cube.service # OR\nsystemctl --user enable desktop_cube.service\n```\n\n## Note on OpenGL Usage\n\nFor the sake of simplicity and brevity, this demo utilizes the fixed-function pipeline elements of OpenGL. Those looking to adapt or expand upon this code might consider updating to a more modern, shader-based approach.\n\n## Known Limitations\n\n- While the demo should work with basic multi-screen setups, it might not render correctly in configurations where monitors are stacked or vary in size.\n- On systems without dedicated GPU, this app may cause higher CPU usage.\n\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelknap%2Fx11-desktop-cube-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelknap%2Fx11-desktop-cube-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelknap%2Fx11-desktop-cube-example/lists"}