{"id":48460722,"url":"https://github.com/gxanshu/chrome-accent-sync","last_synced_at":"2026-04-07T01:31:01.693Z","repository":{"id":345944243,"uuid":"1184897036","full_name":"gxanshu/chrome-accent-sync","owner":"gxanshu","description":"Sync your Linux desktop accent color to Chrome/Chromium automatically","archived":false,"fork":false,"pushed_at":"2026-03-21T17:07:18.000Z","size":9562,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-22T03:20:53.294Z","etag":null,"topics":["chrome","chromium","gnome","kde","linux","theming"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gxanshu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-18T03:15:49.000Z","updated_at":"2026-03-21T17:04:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gxanshu/chrome-accent-sync","commit_stats":null,"previous_names":["gxanshu/chrome-accent-sync"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/gxanshu/chrome-accent-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gxanshu%2Fchrome-accent-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gxanshu%2Fchrome-accent-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gxanshu%2Fchrome-accent-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gxanshu%2Fchrome-accent-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gxanshu","download_url":"https://codeload.github.com/gxanshu/chrome-accent-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gxanshu%2Fchrome-accent-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31496769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T17:22:55.647Z","status":"ssl_error","status_checked_at":"2026-04-06T17:22:54.741Z","response_time":112,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["chrome","chromium","gnome","kde","linux","theming"],"created_at":"2026-04-07T01:31:01.376Z","updated_at":"2026-04-07T01:31:01.639Z","avatar_url":"https://github.com/gxanshu.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chrome-accent-sync\n\nAutomatically sync your Linux desktop accent color to Chrome and Chromium browser theme. When you change your system accent color in GNOME, KDE Plasma, or any desktop that supports XDG Desktop Portal — your browser theme updates to match, instantly.\n\nNo browser extensions. No manual tweaking. Just your desktop color, everywhere.\n\nhttps://github.com/user-attachments/assets/ff185416-19b2-494b-945b-cf389cbce969\n\n## Why\n\nLinux desktops like GNOME 47+ and KDE Plasma 6 let you pick a system-wide accent color. But Chrome and Chromium ignore it completely — your browser stays the same bland default while the rest of your desktop looks cohesive. This tool fixes that.\n\nIt listens for accent color changes over D-Bus and writes a [BrowserThemeColor](https://chromeenterprise.google/policies/#BrowserThemeColor) managed policy that Chrome picks up on its own — no restart needed.\n\n```\nSystem accent changes → D-Bus signal → chrome-accent-sync → writes policy JSON → Chrome picks it up\n```\n\n## Install\n\n### Quick install\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/gxanshu/chrome-accent-sync/main/install.sh | bash\n```\n\nDownloads the latest binary to `~/.local/bin/`. Works on x86_64 and aarch64.\n\n### Build from source\n\n```bash\ngit clone https://github.com/gxanshu/chrome-accent-sync.git\ncd chrome-accent-sync\ncargo build --release\ncp target/release/chrome-accent-sync ~/.local/bin/\n```\n\n## Setup\n\nChrome needs a directory where it reads policy files. This is the only step that needs sudo, and you only do it once:\n\n```bash\nsudo mkdir -p /etc/chromium/policies/managed\nsudo chown $USER /etc/chromium/policies/managed\n```\n\n## Usage\n\n```bash\n# Start the service\nchrome-accent-sync install\n\n# Check if it's running\nchrome-accent-sync status\n\n# Stop and remove everything\nchrome-accent-sync uninstall\n```\n\nThat's it. The service starts on login and keeps your browser in sync with your desktop. No sudo needed after the initial setup.\n\n## Update\n\nRun the install script again. If the service is already running, it restarts automatically with the new version.\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/gxanshu/chrome-accent-sync/main/install.sh | bash\n```\n\n## Tip for GNOME users\n\nIf you're on GNOME and want the accent color to change automatically when you switch wallpapers, grab the [Auto Accent Colour](https://extensions.gnome.org/extension/7624/auto-accent-colour/) extension. It picks a matching accent color from your wallpaper, and chrome-accent-sync will carry that change straight into your browser. Wallpaper changes → accent changes → browser theme changes, all automatic.\n\n## Supported desktops and browsers\n\n### Desktop environments\n- GNOME 47+\n- KDE Plasma 6\n- Any desktop that implements `org.freedesktop.appearance.accent-color` via XDG Desktop Portal\n\n### Browsers\n- Chromium\n- Google Chrome\n- Brave, Edge, and other Chromium-based browsers (using the same policy path)\n\n### Distros\nWorks on any Linux distro with systemd — Fedora, Ubuntu, Arch, Debian, openSUSE, and others.\n\n## How it works under the hood\n\nYour desktop environment exposes the accent color over D-Bus through the [XDG Desktop Portal](https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.Settings.html). This tool connects to that portal, watches for changes to `org.freedesktop.appearance.accent-color`, converts the RGB values to hex, and writes a JSON file to `/etc/chromium/policies/managed/accent-color.json`:\n\n```json\n{\n  \"BrowserThemeColor\": \"#3584E4\"\n}\n```\n\nChrome reads this directory for managed policies and applies the theme color automatically. The service runs as a user-level systemd daemon — lightweight, no root, starts on login.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgxanshu%2Fchrome-accent-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgxanshu%2Fchrome-accent-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgxanshu%2Fchrome-accent-sync/lists"}