Following @peternlewis 's suggestion, I purchased MacSparky's excellent KBM course. His section on triggers gave me the idea to create macros with specific window configurations depending on the web site that I am in, but I can't find a trigger specifically activated by a web site. Is there any way around this ?
P.S.: nothing to do with my question: in one of the first lessons, MacSparky recommends the Karabiner-Elements app which converts among other things the often useless CAPS Lock into Shift-Ctrl-Opt-Cmd. I found this to be an absolutely fantastic addition to KBM because it opens up a multitude of possible keyboard shortcuts (CAPS + any key on the keyboard) which are never used in apps, avoiding any possible keyboard shortcut conflict
thank you for your time and help
Try a Focused Window trigger with an If Then Else action checking the URL of the site:
thank you very much. It answers my question.
Is there any way that I can modify the URL specific window settings when I close the URL tab ?
No problem. I'm afraid I don't understand your new question, though. Can you be more specific about what you want to modify and what your desired result is?
Sorry: I did not express myself correctly.
example: when I open URL XYZ.com → trigger (as per your macro) causes firefox to be in full screen mode.
The problem is that I don't want firefox to remain in full screen mode. I want firefox to revert to normal mode when I close the XYZ web site tab
Thank you, that was much clearer. In that case, I think your best bet is probably a separate macro set up like this:
great. that solves my problem. thanks very much
hello GG, I tried both actions below (NOT simultaneously, - they would just cancel each other out- just depicted to show you) and macro does not work. Both actions work manually if I type Ctrl-Cmd F in browser or click on Menu → View → Enter Full Screen
would you have any idea what I would be doing wrong ?
Hi again, @ronald. The most likely cause is that you're not using the correct token; it should be
%FrontBrowser%. A good way to ensure that the correct tokens are entered is to use the Insert Token by Name function, bound to ⌃⌘T by default:
Another possible factor is that Firefox doesn't work with KM browser actions and tokens like
%FrontBrowserURL%, so if that's your browser of choice, you'll need to use a front window title condition like this:
thank you very much. It works perfectly when I enter the token using ⌃⌘T.
I am very sorry to pester you with yet another question.
I realize that it's not a question of just one web site for which I would opt for full screen. There are a multitude of web sites. Do I just list them as per below?
You're welcome. And no, that won't work with
contains, but it will with
matches if you separate them with a pipe, like this:
fantastic ! thank you so much !!
works perfectly with the pipe
Just FYI, in case you write similar macros in the future, some browsers require a pause