Trigger different actions on multiple presses of the same shortcut


#1

It would be great if you could setup multiple actions for the same shortcut. For example:

CMD+SHIFT+RIGHT: Maximize to right two thirds
CMD+SHIFT+RIGHT: Maximize to right half
CMD+SHIFT+RIGHT: Maximize to right one third
... cycle to first...

I love to quickly set a window to a certain size of the screen. But now I have to use different shortcuts for every size, if you could cycle through it would be awesome.


#2

Same here. I often use a grid of 3 by 2 windows or 2 by 2 and switching between them is not that easy.


#3

This would be extremely useful for "toggle" actions. For example, a single button that could cycle between ["Show Hidden Files", "Hide Hidden Files"] in Finder. This would make more logical sense than two separate buttons, as repeating the same command does nothing.


#4

You could make a toggle switch with applescript and BTT variables.

So far for me, my toggle switchs are working pretty well over at AquaTiuch

I’m not using a three-function toggle, but here’s how it would look like in pseudocode:

start script

(makes the variable and sets it if it doesn’t exist)
if ThisTriggerState is missing value
set persistent BTT variable “ThisTriggerState” to 1
end if

if state is 1
do named trigger 1
set “ThisTriggerState” to 2
exit

else if state is 2
do named trigger 2
set “ThisTriggerState” to 3
exit

else if state is 3
do named trigger 3
set “ThisTriggerState” to 1
exit

end if
end script