9 ms·
Not out of the box, but I use Hammerspoon to implement a global hotkey to show WezTerm: https://github.com/jaminthorns/environment/blob/a609e81f3f4179d3c60b60bd
by technojamin 2y ago
Not out of the box, but I use Hammerspoon to implement a global hotkey to show WezTerm: https://github.com/jaminthorns/environment/blob/a609e81f3f4179d3c60b60bd729e6424916d3655/config/hammerspoon/init.lua#L21-L22 https://github.com/jaminthorns/environment/blob/a609e81f3f41...
I don't have a keybinding to hide, but you could easily achieve that by inspecting the active window with `hs.window.focusedWindow()`/`hs.window.frontmostWindow()` and making the behavior conditional based on the application: https://www.hammerspoon.org/docs/hs.window.html#focusedWindow https://www.hammerspoon.org/docs/hs.window.html#focusedWindo...
In WezTerm, you can control whether the terminal is always on top with the `ToggleAlwaysOnTop` action: https://wezfurlong.org/wezterm/config/lua/keyassignment/ToggleAlwaysOnTop.html https://wezfurlong.org/wezterm/config/lua/keyassignment/Togg...
- pmarreck 2y agoI was unfamiliar with Hammerspoon; to those like me, https://www.hammerspoon.org/ https://www.hammerspoon.org/
- spartanatreyu 2y agoI use it to add window snapping to macos: https://gist.github.com/spartanatreyu/850788a0441e1c5565668a35ed9a1dfc https://gist.github.com/spartanatreyu/850788a0441e1c5565668a...
- DavideNL 2y agoNote that this does only the “show/hide’ the window part; The iTerm2 hotkey window, is a floating window, which for example also works in a space with another Fullscreen window/app opened (without moving to another space.)
- matthewmc3 2y agoYou can get the rest of the way there by combining the Hammerspoon method of launching with WezTerm's ToggleAlwaysOnTop feature. I use a similar method described here: https://github.com/wez/wezterm/issues/1751#issuecomment-2299991133 https://github.com/wez/wezterm/issues/1751#issuecomment-2299... You could probably even use Hammerspoon to initiate the keyboard shortcut if you didn't want to mark the window manually.
- DavideNL 2y agoI expect that won't work on macOS, because an "Always On Top window" is not equal to a "floating window"... It's described here: https://github.com/wez/wezterm/issues/1751#issuecomment-1973198115 https://github.com/wez/wezterm/issues/1751#issuecomment-1973...