macOS: toggle_visibility keybind only hides window, cannot unhide #5872
-
Hello, keybind = global:cmd+\=toggle_visibility When I press the key combination:
Steps to Reproduce:
System Details:
I've also validated my configuration with the Ghostty CLI using I've recorded a video demonstrating the behavior, which I will attach shortly. Has anyone else encountered this issue or have suggestions for a fix? Thank you for your help! example.mp4 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Duplicate of #5615, looks like |
Beta Was this translation helpful? Give feedback.
-
Hey 👋 So for everyone having this problem—I know the Ghostty team is usually quick with fixes, but if you need this feature right now, I've put together a simple workaround to bring toggle visibility back. example2.mp4Here’s what you need to do if you want to add it: Requirements
Step-by-Step Instructions
-- Function to toggle Ghostty's visibility
local function toggleGhosttyVisibility()
local app = hs.application.find("Ghostty")
if app then
-- If Ghostty is the frontmost application, hide it
if app:isFrontmost() then
app:hide()
else
-- Otherwise, bring it to the front
app:activate()
end
else
-- If Ghostty isn't running, launch it
hs.application.launchOrFocus("Ghostty")
end
end
-- Bind Command + \ to toggle Ghostty visibility Here you can customize for your own keybinds
hs.hotkey.bind({"cmd"}, "\\", toggleGhosttyVisibility) This script will check for:
Hope this helps anyone experiencing the issue. |
Beta Was this translation helpful? Give feedback.
-
Another option if you have the the rcmd app. If ghostty is the only 'G' app you care about, you can have this behavior. ![]() |
Beta Was this translation helpful? Give feedback.
-
People c'mon this is a duplicate if you want to share workarounds do it in the other thread. |
Beta Was this translation helpful? Give feedback.
Duplicate of #5615, looks like