{"id":16065289,"url":"https://github.com/shnatsel/pantheon-files-colorize","last_synced_at":"2025-08-11T00:52:22.970Z","repository":{"id":68760453,"uuid":"94247888","full_name":"Shnatsel/pantheon-files-colorize","owner":"Shnatsel","description":"Programmatically colorize files in elementary OS","archived":false,"fork":false,"pushed_at":"2017-06-15T00:56:50.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T10:12:16.317Z","etag":null,"topics":["elementary","elementary-os","pantheon","scripting"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/Shnatsel.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":"2017-06-13T19:04:28.000Z","updated_at":"2017-06-17T09:35:44.000Z","dependencies_parsed_at":"2023-03-30T09:24:39.283Z","dependency_job_id":null,"html_url":"https://github.com/Shnatsel/pantheon-files-colorize","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"085413267c22f3d4843ddd865879419a03471dea"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Shnatsel/pantheon-files-colorize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shnatsel%2Fpantheon-files-colorize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shnatsel%2Fpantheon-files-colorize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shnatsel%2Fpantheon-files-colorize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shnatsel%2Fpantheon-files-colorize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shnatsel","download_url":"https://codeload.github.com/Shnatsel/pantheon-files-colorize/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shnatsel%2Fpantheon-files-colorize/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269814273,"owners_count":24479358,"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-08-10T02:00:08.965Z","response_time":71,"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":["elementary","elementary-os","pantheon","scripting"],"created_at":"2024-10-09T05:12:12.453Z","updated_at":"2025-08-11T00:52:22.878Z","avatar_url":"https://github.com/Shnatsel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Programmatically colorize files in elementary OS\n\nWant to highlight files that fit a certain criteria for later use, and not satisified with search? Then this script is for you.\n\n`pantheon-files-colorize` is a command that lets you set colors for arbitrary files that will be displayed in elementary OS file manager, `pantheon-files`. You can use it from shell scripts or any other programs to highlight files based on arbitrarily complex criteria.\n\nRun `pantheon-files-colorize` without parameters to see the list of supported colors and detailed usage instructions.\n\n## Examples\n\n### Taint code with TODOs or FIXMEs\n`for file in ./*; do (grep -q TODO \"$file\" || grep -q FIXME \"$file\") \u0026\u0026 pantheon-files-colorize red \"$file\"; done`\n\n### Get horrified by the sizes of binaries in /usr/bin\n(as well as the amount of stuff in there; due to the sheer number of files this takes a while)\n```\nfor file in /usr/bin/*; do\n    size_in_bytes=$(stat --format='%s' \"$file\")\n    if [ \"$size_in_bytes\" -lt 100000 ]; then\n        pantheon-files-colorize green \"$file\" # under 100kb\n    elif [ \"$size_in_bytes\" -lt 1000000 ]; then\n        pantheon-files-colorize yellow \"$file\" # under 1Mb\n    else\n        pantheon-files-colorize red \"$file\" # over 1Mb\n    fi\ndone\n```\n\n### Reset color for all files in the current folder and all of its subfolders\n`pantheon-files-colorize none **`\n\n\n## Limitations\n\nYou need to refresh the directory in pantheon-files to see changes made by this script. The keyboard shortcut for that is `Ctrl+R`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshnatsel%2Fpantheon-files-colorize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshnatsel%2Fpantheon-files-colorize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshnatsel%2Fpantheon-files-colorize/lists"}