{"id":18772847,"url":"https://github.com/chux0519/wayab","last_synced_at":"2025-09-06T08:36:12.890Z","repository":{"id":45054421,"uuid":"430601637","full_name":"chux0519/wayab","owner":"chux0519","description":"wayland animated background","archived":false,"fork":false,"pushed_at":"2024-03-11T08:37:23.000Z","size":48,"stargazers_count":22,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T00:33:58.508Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chux0519.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":"2021-11-22T07:17:30.000Z","updated_at":"2023-10-29T22:27:34.000Z","dependencies_parsed_at":"2024-11-07T19:48:39.503Z","dependency_job_id":null,"html_url":"https://github.com/chux0519/wayab","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chux0519%2Fwayab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chux0519%2Fwayab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chux0519%2Fwayab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chux0519%2Fwayab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chux0519","download_url":"https://codeload.github.com/chux0519/wayab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248688544,"owners_count":21145763,"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":[],"created_at":"2024-11-07T19:31:14.616Z","updated_at":"2025-04-13T08:55:34.810Z","avatar_url":"https://github.com/chux0519.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wayab\n\nwayab(wayland animated background) allows user to set animated background on Linux(wayland).\n\n\n## Features\n\n- low CPU costs. Unlike `oguri` which change the background by sending requests via wayland-protocols, wayab use [dmabuf](https://wayland-book.com/surfaces/dmabuf.html) to save CPU costs.\n- configurable frame rate\n- multi-monitor support\n\n## Dependencies\n\n- wayland-client\n- wayland-egl\n- wayland-protocols\n  - stable/xdg-shell/xdg-shell.xml\n  - unstable/xdg-output/xdg-output-unstable-v1.xml (for output name)\n  - wlr-layer-shell-unstable-v1.xml (for the `background` role and output size)\n- cairo and cairo-gl (the `aur/cairo-glesv3-bin` package if you use Arch)\n- also need your PC to support EGL and GLESv2\n\n## Build\n\nuse cmake\n\n```bash\nmkdir build \u0026\u0026 cd build\ncmake ..\nmake\n```\n\n## Usage\n\n1. Extract all frames from your source(gif for example), usually using `imagemagick`'s `convert` command\n\n\u003e convert -coalesce ./input.gif out%04d.png\n\nif you have a viedeo as input, you can use ffmpeg to do similar work.\n\n2. run following command\n\n\u003e wayab -f $fps -o $config\n\n- `-h` show help message \n- `-f` set fps\n- `-o` output config, in format: `\u003coutput\u003e:\u003cpath\u003e:\u003cresize\u003e:\u003canchor\u003e`\n  - output is the output name\n  - path is the abs path which contains all frames(need to be PNG) of some animated pictures\n  - resize could be none/fill/fit/stretch/tile\n  - anchor is a coordinate in range (0.0,0.0) to (1.0,1.0)\n    - 0.0,0.0 means left-top\n    - 1.0,0.0 means right-top\n    - 1.0,1.0 means right-bottom\n    - 0.0,1.0 means left-bottom\n    - 0.5,0.5 means center\n    - ..\n\nfor example, if you have two directory for two gifs, `/tmp/a` and `/tmp/b`, and you have two output `eDP-1` and `DP-2`.\n\n\u003e wayab -f 10 -o eDP-1:/tmp/a:none:0.5,0.5 -o DP-2:/tmp/b:fill:0.5,1.0\n\nmeans, you set the fps to 10, and set `/tmp/a` as `eDP-1`'s background, no resize will be applied and aligned to center. And `/tmp/b` as `DP-2`'s background, it will be resized to fill the output and aligned to center-bottom.\n\n\n## Example\n\n\nhttps://user-images.githubusercontent.com/14276970/144039851-497ed32e-fd20-4b27-9c84-86b1bab2fccd.mp4\n\nimage from [1041uuu](https://1041uuu.tumblr.com/page/3)\n\n\n## Update\n\ncairo dropped opengl backend support since 1.17.8, to make wayab work, we should use cairo 1.17.4 which still provide `cairo-gl`.\n\njust download the prebuilt version of cairo from [aur/cairo-glesv3-bin](https://webreflection.github.io/aur/cairo-glesv2-bin-x86_64-1.17.4.tar.gz).\n\nthen use following command with cmake\n\n\u003e cmake -DCairo_ROOT=/path/to/prebuilt/root ..\n\n### Update 2024/03/11\n\nthis repo vendored libcairo 1.17.4, so just\n\n\u003e git submodule --init\n\nafter clone or add `--recursive` when getting this repo","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchux0519%2Fwayab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchux0519%2Fwayab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchux0519%2Fwayab/lists"}