https://github.com/source-c/wezterm-configs
WezTerm crafting for MacOS
https://github.com/source-c/wezterm-configs
Last synced: about 1 year ago
JSON representation
WezTerm crafting for MacOS
- Host: GitHub
- URL: https://github.com/source-c/wezterm-configs
- Owner: source-c
- Created: 2024-12-11T00:18:47.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-13T16:47:43.000Z (over 1 year ago)
- Last Synced: 2025-03-28T18:19:16.025Z (about 1 year ago)
- Language: Lua
- Size: 614 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WezTerm MacOS customisations
## Create MacOS script to toggle the app
```
-- Define needed vars
set appName to "WezTerm"
set launcher to "open /Applications/WezTerm.app"
-- Ensure System Events is activated to check frontmost process
tell application "System Events"
set frontmostProcess to first process where it is frontmost
end tell
if application appName is not running then
do shell script launcher
else
-- Compare frontmost process name with appName
if name of frontmostProcess is not appName then
tell application appName
activate
end tell
else
tell application frontmostProcess
activate
end tell
end if
end if
```
and then export it as signed `ToggleTerm.app`
## Define WezTerm shortcut to hide it when active
```lua
{
key = 'F12',
mods = 'OPT',
action = wezterm.action.HideApplication
}
```
## Create Automator Trigger

## Create Keyboard Shortcut

## Enjoy!
Now pressing `Option+F12` switches you to the terminal and back from everywhere.