{"id":20032317,"url":"https://github.com/weakish/jump-or-exec","last_synced_at":"2025-06-13T05:03:35.571Z","repository":{"id":25290067,"uuid":"28716092","full_name":"weakish/jump-or-exec","owner":"weakish","description":"shell script to jump or exec an application under X window manager","archived":false,"fork":false,"pushed_at":"2016-04-20T14:28:11.000Z","size":441,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T05:28:33.325Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weakish.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}},"created_at":"2015-01-02T14:51:04.000Z","updated_at":"2021-04-22T23:41:22.000Z","dependencies_parsed_at":"2022-08-23T04:50:10.287Z","dependency_job_id":null,"html_url":"https://github.com/weakish/jump-or-exec","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/weakish/jump-or-exec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weakish%2Fjump-or-exec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weakish%2Fjump-or-exec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weakish%2Fjump-or-exec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weakish%2Fjump-or-exec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weakish","download_url":"https://codeload.github.com/weakish/jump-or-exec/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weakish%2Fjump-or-exec/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259584707,"owners_count":22880187,"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","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":"2024-11-13T09:36:39.599Z","updated_at":"2025-06-13T05:03:35.197Z","avatar_url":"https://github.com/weakish.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"`jump-or-exec` tries to see if an application is already running, and if so, bring the application's window to the front, otherwise launch an instance.\nBind it to a shortcut key and it will be useful!\n\n## Usage\n\n```sh\njump-or-exec command [window_name]\n```\n\n## Install\n\n### Dependencies\n\nThis script uses [wmctrl](http://tomas.styblo.name/wmctrl/), which is a UNIX/Linux command line tool to interact with an EWMH/NetWM compatible X Window Manager.\n\n### via basher\n\n```sh\n; basher install weakish/jump-or-exec\n```\n\nRequire [basher][] version: `\u003e=39875bc`.\n\n[basher]: https://github.com/basherpm/basher\n\n### manually\n\nYou just need to download `jump-or-exec.sh`, and put it into your `$PATH`,\nprobably after renaming to `jump-or-exec` and `chomd a+x`.\n\n\n## See also\n\nThis script is based on the version in [eshock/.bashrc.d](https://github.com/eshock/.bashrc.d/blob/master/tools/jump-or-exec), in which `window_name` cannot be omitted.\n\nThere are also other scripts based on wmctrl, for example, [jumpapp](https://github.com/mkropat/jumpapp) and [brocket](https://github.com/dmikalova/brocket).\nBoth are more complex^w feature rich.\nAnd I failed to make them work with some applications.\nThus I wrote this script.\n\nBesides wmctrl, it is also possible to implement `jump or exec` in Xlib directly.\nFor example, here is [a Python script](http://www.aifreedom.com/pluskid/JumpOrExec.html).\nThe script runs as a daemon, to avoid possible delays when invoking shell script and wmctrl.\nThe post is written in Chinese, but don't worry, you can read code in Python and code comments in English.\nOn my machine, `wmctrl` is fast enough.\nThus I consider I don't need a persistent daemon.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweakish%2Fjump-or-exec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweakish%2Fjump-or-exec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweakish%2Fjump-or-exec/lists"}