{"id":29014883,"url":"https://github.com/activexdiamond/actives-bin","last_synced_at":"2026-07-10T06:31:04.489Z","repository":{"id":300122584,"uuid":"1005268356","full_name":"ActivexDiamond/actives-bin","owner":"ActivexDiamond","description":"A collection of short and useful Arch-/Linux-related scripts. Most are written in Bash.","archived":false,"fork":false,"pushed_at":"2025-12-06T04:59:53.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-09T21:39:22.383Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/ActivexDiamond.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-20T00:48:09.000Z","updated_at":"2025-12-06T04:59:57.000Z","dependencies_parsed_at":"2025-06-20T01:44:18.415Z","dependency_job_id":null,"html_url":"https://github.com/ActivexDiamond/actives-bin","commit_stats":null,"previous_names":["activexdiamond/actives-bin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ActivexDiamond/actives-bin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActivexDiamond%2Factives-bin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActivexDiamond%2Factives-bin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActivexDiamond%2Factives-bin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActivexDiamond%2Factives-bin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ActivexDiamond","download_url":"https://codeload.github.com/ActivexDiamond/actives-bin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActivexDiamond%2Factives-bin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35323809,"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-07-10T02:00:06.465Z","response_time":60,"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":[],"created_at":"2025-06-25T20:31:17.467Z","updated_at":"2026-07-10T06:31:04.484Z","avatar_url":"https://github.com/ActivexDiamond.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Active's Bin\nA collection of short and useful Arch-/Linux-related scripts. Most are written in Bash.\nAll scripts are as standalone as possible. No script depends on any other one in this bin, so you are free to snag only a single one; you do not need the entire bin.\nMost only require a POSIX system, though other might require extra dependencies such as a window system.\n\nMost are written by me but few are taken from online sources. In those cases, attribution is given in-script.\n\n# Notable Scripts\nAll scripts have `-h/--help` options which describe their usage. However here is a summary of some of my favourites.\n\n- `create-script`\n    - Creates a new script(s), in your directory of choice. Sets it to be executable by the current user. And fills it with a nice template. Then opens it using your $EDITOR.\n- `get-x11-window-owner`\n    - Gets the executable responsible for a particular window. Allows selecting your target window with the mouse.\n- `sum-video-durations`\n    - Goes through a given directory (optionally; recursively) and sums the durations of all videos found within.\n- `popup-new-file-dialog`\n    - Brings up a yad dialog with powerful options for creating blank files.\n- `popup-date-time-notification`\n    - Shows a notification with the current date, time, year-week, and unix-time. Useful if you don't like taskbars. :P\n\n# CLI Options\nCurrently, they all accept Unix-style short options (E,g, `-a`) **and** GNU-style long options (E.g. `--all`).\nFor options that take an argument, it may either written directly, seperated by a space, or seperated by an equals sign.\nI recommend always using an equals, however that is simply a matter of style.\n\nI do my best to follow the best-practices recommended by [The Art of Unix Programming](http://catb.org/~esr/writings/taoup/html/index.html) in his segment about [CLI options](http://catb.org/~esr/writings/taoup/html/ch10s05.html).\n**IMPORTANT**: Chaining of Unix-style short options is currently not supported!\n\nCurrently, errors for invalid options are not emitted properly. If a script is given more total arguments than it could ever handle, or less than the minimum\nA few examples:\n```bash\ncreate-script foo\n\n# The below 2 are identical.\ncreate-script foo -b -e\ncreate-script foo --blank --editor\n\n# The below 3 are identical.\ncreate-script -b foo\ncreate-script foo -b\ncreate-script foo --blank\n```\n\nHowever, the following is currently not implemented.\n```bash\ncreate-script foo -bn    # ERROR: NOT valid!\n```\n\n# TODO List\nGeneral (mostly `create-script`'s template):\n[x] Implement basic option handling.\n- [x] Update most scripts with safety features and better exit codes.\n- [ ] Implement parsing of chained of Unix-style short options.\n- [ ] Implement better parsing of options with arguments.\n- [ ] Implement forced positional arguments.\n- [ ] Implement support for man pages.\n- [ ] Automatically conclude min/max argument count from the argument parsing code / definition.\n\nPer-script (all:\n- [ ] Document the non-POSIX dependencies of each script, in its `help` message.\n\n# Credit\nDulfiqar 'Active Diamond' H. Al-Safi\n\n# License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factivexdiamond%2Factives-bin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factivexdiamond%2Factives-bin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factivexdiamond%2Factives-bin/lists"}