From da3b8934ca15cda5fc5d358fb908347e912ce857 Mon Sep 17 00:00:00 2001 From: Phil Cohen Date: Sun, 8 Oct 2023 08:59:13 -0700 Subject: [PATCH] window_action.talon: focus application when going full screen There's an action to make a arbitrary application full screen, but it doesn't actually work properly if that application isn't the focused one, so let's focus it first. After this you can do something like "slack fullscreen enter". Although that's kind of a painful grammar. --- window_action.talon | 1 + 1 file changed, 1 insertion(+) diff --git a/window_action.talon b/window_action.talon index fc451e9..fa9c682 100644 --- a/window_action.talon +++ b/window_action.talon @@ -17,6 +17,7 @@ from window {user.window_actions} all: # Entering and exiting fullscreen mode. fullscreen enter: user.action_windows("fullscreen", 1, 0) fullscreen enter: + user.switcher_focus(user.running_applications) user.action_windows("fullscreen", 1, 0, user.running_applications) fullscreen exit: key(cmd-ctrl-f)