{"id":13600857,"url":"https://github.com/efernau/rot8","last_synced_at":"2025-10-20T12:58:38.855Z","repository":{"id":35067219,"uuid":"187400882","full_name":"efernau/rot8","owner":"efernau","description":"screen rotation daemon","archived":false,"fork":false,"pushed_at":"2025-10-09T03:42:02.000Z","size":120,"stargazers_count":124,"open_issues_count":6,"forks_count":31,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-20T12:58:27.202Z","etag":null,"topics":["accelerometer","display","hyperland","rotate","rotate-screen","rotation","rust","sway","touchscreen","wayland","x11"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/efernau.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,"zenodo":null}},"created_at":"2019-05-18T20:10:15.000Z","updated_at":"2025-10-10T21:56:27.000Z","dependencies_parsed_at":"2024-03-30T18:43:15.283Z","dependency_job_id":"597ddd3c-00f2-46f5-a3ff-4378409449cb","html_url":"https://github.com/efernau/rot8","commit_stats":{"total_commits":52,"total_committers":14,"mean_commits":"3.7142857142857144","dds":0.7307692307692308,"last_synced_commit":"359cb61618182d761e17c4718ab12e278ca63b9d"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/efernau/rot8","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efernau%2Frot8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efernau%2Frot8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efernau%2Frot8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efernau%2Frot8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/efernau","download_url":"https://codeload.github.com/efernau/rot8/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efernau%2Frot8/sbom","scorecard":{"id":368247,"data":{"date":"2025-08-11","repo":{"name":"github.com/efernau/rot8","commit":"428221ea0990d90a2fce1f29be6d09af48d1874d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Code-Review","score":3,"reason":"Found 5/14 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":2,"reason":"2 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/rust.yml:1","Warn: no topLevel permission defined: .github/workflows/stale.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/efernau/rot8/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/efernau/rot8/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/efernau/rot8/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/efernau/rot8/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/efernau/rot8/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/efernau/rot8/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/efernau/rot8/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/efernau/rot8/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/efernau/rot8/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/stale.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/efernau/rot8/stale.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: RUSTSEC-2021-0145 / GHSA-g98v-hv3f-hcfr","Warn: Project is vulnerable to: RUSTSEC-2024-0375"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 23 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T12:22:17.904Z","repository_id":35067219,"created_at":"2025-08-18T12:22:17.904Z","updated_at":"2025-08-18T12:22:17.904Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280094904,"owners_count":26271003,"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","status":"online","status_checked_at":"2025-10-20T02:00:06.978Z","response_time":62,"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":["accelerometer","display","hyperland","rotate","rotate-screen","rotation","rust","sway","touchscreen","wayland","x11"],"created_at":"2024-08-01T18:00:49.956Z","updated_at":"2025-10-20T12:58:38.797Z","avatar_url":"https://github.com/efernau.png","language":"Rust","readme":"# rot8\n\n[![Rust](https://github.com/efernau/rot8/actions/workflows/rust.yml/badge.svg?branch=master)](https://github.com/efernau/rot8/actions/workflows/rust.yml)\n\n## automatic display rotation using built-in accelerometer\n\nAutomatically rotate modern Linux desktop screen and input devices. Handy for\nconvertible touchscreen notebooks like HP Spectre x360, Lenovo IdeaPad Flex\nor Linux phone like Pinephone.\n\nCompatible with [X11](https://www.x.org/wiki/Releases/7.7/) and Wayland\ncompositors which support the `wlr_output_management_v1` protocol (Like\n[sway](http://swaywm.org/) and [hyprland](https://hyprland.org/)).\n\n### installation\n\n#### packages\n\nArch User Repository: [rot8-git](https://aur.archlinux.org/packages/rot8-git/)\n\nGNU Guix Package: [rot8](https://packages.guix.gnu.org/packages/rot8/)\n\nNixpkgs: [rot8](https://search.nixos.org/packages?show=rot8\u0026type=packages\u0026query=rot8)\n\nVoid Package: [rot8](https://github.com/void-linux/void-packages/tree/master/srcpkgs/rot8)\n\n\n\n#### manually build from source\n\nRust language and the cargo package manager are required to build the binary.\n\n```\n$ git clone https://github.com/efernau/rot8\n$ cd rot8 \u0026\u0026 cargo build --release\n$ cp target/release/rot8  /usr/bin/rot8\n```\n\nor\n\n```\n$ cargo install rot8\n\n```\n\n### usage\n\nMap your inputs to the output device as necessary. e.g. for sway:\n\n```\n\n$ swaymsg input \u003cINPUTDEVICE\u003e map_to_output \u003cOUTPUTDEVICE\u003e\n\n```\n\nCall rot8 from your compositor configuration. e.g. for sway:\n\n```\n\nexec rot8\n\n```\n\nFor X11 set Touchscreen Device\n\n```\n\nrot8 --touchscreen \u003cTOUCHSCREEN\u003e\n\n```\n\nThis will start the daemon running, continuously checking for rotations.\n\nThere are the following args (defaults):\n\n```\n\n--sleep                 // Set millis to sleep between rotation checks (500)\n--display               // Set Display Device (eDP-1)\n--touchscreen           // Set Touchscreen Device X11, allows multiple devices (ELAN0732:00 04F3:22E1)\n--keyboard              // Set keyboard to deactivate upon rotation, for Sway only\n--threshold             // Set a rotation threshold between 0 and 1, higher is more sensitive (0.5)\n--normalization-factor  // Set factor for sensor value normalization (1e6)\n--invert-x              // Invert readings from the HW x axis\n--invert-y              // Invert readings from the HW y axis\n--invert-z              // Invert readings from the HW z axis\n--invert-xy             // Map HW axes to internal x and y respectively (xy, yx, zy, yz, xz, zx)\n--oneshot               // Updates the screen rotation just once instead of continuously\n--beforehooks           // Execute a custom script before rotation\n--hooks                 // Execute a custom script after the rotation has finished\n--version               // Returns the rot8 version\n\n```\n\nYou may need to play with the normalization factor (try multiples of 10) and the axis inversions to get the accelerometer readings to calculate right.\n","funding_links":[],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefernau%2Frot8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fefernau%2Frot8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefernau%2Frot8/lists"}