Playing around with ways to change functions when a certain action is performed or a specific window is opened