{"id":23148838,"url":"https://github.com/source-c/wezterm-configs","last_synced_at":"2025-04-04T14:11:47.740Z","repository":{"id":267681122,"uuid":"901591185","full_name":"source-c/wezterm-configs","owner":"source-c","description":"WezTerm crafting for MacOS","archived":false,"fork":false,"pushed_at":"2024-12-13T16:47:43.000Z","size":629,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T18:19:16.025Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":false,"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/source-c.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}},"created_at":"2024-12-11T00:18:47.000Z","updated_at":"2025-02-02T13:52:34.000Z","dependencies_parsed_at":"2024-12-11T20:20:58.081Z","dependency_job_id":"955930ea-5105-48bd-99c8-3dee23e696be","html_url":"https://github.com/source-c/wezterm-configs","commit_stats":null,"previous_names":["source-c/wezterm-configs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/source-c%2Fwezterm-configs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/source-c%2Fwezterm-configs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/source-c%2Fwezterm-configs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/source-c%2Fwezterm-configs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/source-c","download_url":"https://codeload.github.com/source-c/wezterm-configs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247190258,"owners_count":20898702,"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-12-17T17:13:17.865Z","updated_at":"2025-04-04T14:11:47.707Z","avatar_url":"https://github.com/source-c.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WezTerm MacOS customisations\n\n## Create MacOS script to toggle the app\n\n```\n-- Define needed vars\nset appName to \"WezTerm\"\nset launcher to \"open /Applications/WezTerm.app\"\n\n-- Ensure System Events is activated to check frontmost process\ntell application \"System Events\"\n\tset frontmostProcess to first process where it is frontmost\nend tell\n\nif application appName is not running then\n\tdo shell script launcher\nelse\n\t-- Compare frontmost process name with appName\n\tif name of frontmostProcess is not appName then\n\t\ttell application appName\n\t\t\tactivate\n\t\tend tell\n\telse\n\t\ttell application frontmostProcess\n\t\t\tactivate\n\t\tend tell\n\tend if\nend if\n```\n\nand then export it as signed `ToggleTerm.app`\n\n## Define WezTerm shortcut to hide it when active\n\n```lua\n  \t{\n  \t\tkey = 'F12',\n  \t\tmods = 'OPT',\n  \t\taction = wezterm.action.HideApplication\n  \t}\n```\n\n## Create Automator Trigger\n![Create Automator Trigger](./create-automator-trigger.png \"Create Automator Trigger\")\n\n## Create Keyboard Shortcut\n![Create Keyboard Shortcut](./create-shortcut.png \"Create Keyboard Shortcut\")\n\n## Enjoy!\n\nNow pressing `Option+F12` switches you to the terminal and back from everywhere.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsource-c%2Fwezterm-configs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsource-c%2Fwezterm-configs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsource-c%2Fwezterm-configs/lists"}