{"id":17382914,"url":"https://github.com/patreeceeo/wootmux","last_synced_at":"2026-05-16T13:02:34.441Z","repository":{"id":256253878,"uuid":"854713746","full_name":"patreeceeo/wootmux","owner":"patreeceeo","description":"Wanted: Object-Oriented Tmux","archived":false,"fork":false,"pushed_at":"2024-09-10T22:25:13.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-04T10:33:37.028Z","etag":null,"topics":["library","object-oriented","object-oriented-programming","oop","productivity","productivity-tools","shell","shellscript","terminal","terminal-based","tmux","tooling","tools"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/patreeceeo.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}},"created_at":"2024-09-09T16:46:21.000Z","updated_at":"2024-09-11T02:14:21.000Z","dependencies_parsed_at":"2024-09-09T21:47:52.134Z","dependency_job_id":"26e009f3-4a48-4b30-b37e-086d8a0e0993","html_url":"https://github.com/patreeceeo/wootmux","commit_stats":null,"previous_names":["patreeceeo/wootmux"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/patreeceeo/wootmux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patreeceeo%2Fwootmux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patreeceeo%2Fwootmux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patreeceeo%2Fwootmux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patreeceeo%2Fwootmux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patreeceeo","download_url":"https://codeload.github.com/patreeceeo/wootmux/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patreeceeo%2Fwootmux/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33103970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["library","object-oriented","object-oriented-programming","oop","productivity","productivity-tools","shell","shellscript","terminal","terminal-based","tmux","tooling","tools"],"created_at":"2024-10-16T07:39:49.818Z","updated_at":"2026-05-16T13:02:34.422Z","avatar_url":"https://github.com/patreeceeo.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wootmux\n## Wanted: Object-Oriented Tmux\n\nA simple tmux wrapper that tries to be Object Oriented. [Read more about the idea of OOP and tmux in this blog post](https://innerlogic.co/2024/09/10/taking-the-hell-out-of-shell-making-tmux-object-oriented/).\n\n### installion\n\n```sh\ncurl https://raw.githubusercontent.com/patreeceeo/wootmux/main/wootmux.sh \u003e wootmux.sh\n```\n\n### Example Usage\n\nSee [an example in another project](https://github.com/patreeceeo/zomboban/blob/main/dev.sh) or this project's own dev.sh.\n\n### Public API\n\nYou can't really do OOP in POSIX Shell. Instead, we use functions in the form of \"wm\\_\u0026lt;object\u0026gt;\\_new\" or \"wm\\_\u0026lt;object\u0026gt;\\_new\\_\u003cmodifier\u003e\" that creates an \u003cobject\u003e and returns its UUID. We can then use this UUID to perform further actions with this object.\n\n#### Session\n##### new\n\n```sh\nmy_session_id=$(wm_session_new \"my_session\") # Creates a session named my_session and assigns its UUID to my_session_id\n```\n\n##### exists?\n\n```sh\n[ wm_session_exists \"$my_session_name_or_id\" ] \u0026\u0026 echo \"this session exists\"\n```\n\n##### attach\n\n```sh\nwm_session_attach \"$my_session_name_or_id\" # attaches client to given session\n```\n\n##### current\n\n```sh\nmy_session_id=$(wm_session_current) # get UUID of current session\n```\n\n##### kill\n\n```sh\nwm_session_kill \"$my_session_name_or_id\" # it's gone\n```\n\n#### Pane\n##### new_\u0026lt;direction\u0026gt;\n\n```\nwm_pane_new_left \"$my_pane_id\" # Split window containing $my_pane_id such that the new pane is to the left\n```\n\n### WOOT!\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatreeceeo%2Fwootmux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatreeceeo%2Fwootmux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatreeceeo%2Fwootmux/lists"}