# Trigger different behaviors on double and triple clicks with same modifier.

**URL:** <https://community.folivora.ai/t/trigger-different-behaviors-on-double-and-triple-clicks-with-same-modifier/41967>\
**Category:** Configuration Help & General Discussion\
**Created:** [January 29, 2025, 3:12pm UTC](https://community.folivora.ai/t/trigger-different-behaviors-on-double-and-triple-clicks-with-same-modifier/41967 "2025-01-29T15:12:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aurel\_Buche](https://community.folivora.ai/user_avatar/community.folivora.ai/aurel_buche/32/33486_2.png) [@Aurel\_Buche](https://community.folivora.ai/u/Aurel_Buche)\
**Post date:** [January 29, 2025, 3:12pm UTC](https://community.folivora.ai/t/trigger-different-behaviors-on-double-and-triple-clicks-with-same-modifier/41967/1 "2025-01-29T15:12:55Z")

</div>

Hi,

From this post : [Triple Click vs. Double Click](https://community.folivora.ai/t/triple-click-vs-double-click/32920)

It seems that what I want to achieve seems impossible but I still think asking might be worth it.

I would like to have :

- "option + double left click" to make the window under the mouse half of the screen (left or right depending on mouse position)
- "option + triple left click" to make the window under the mouse a third of the screen (again side depends on mouse position)

Here is what I have made so far for the right side but triple click seems to trigger both and the window being resized to half the screen seems to take precedence.

 ![image](https://community.folivora.ai/uploads/default/original/3X/6/2/626e513a237924b1dc57fba0235731cb6db972b5.png)

By the way, the "double" and "triple" click triggers are labelled with a duplicate in their name.

Thanks in advance for your help,  
Aurel

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [January 29, 2025, 3:22pm UTC](https://community.folivora.ai/t/trigger-different-behaviors-on-double-and-triple-clicks-with-same-modifier/41967/2 "2025-01-29T15:22:15Z")

</div>

It is tricky, you would need to do it like this:

Double click triggers a named delayed action execution after something like 0.2 seconds.  
Triple click cancels that delayed execution.

Have a look at this:

[double\_triple.bttpreset](https://community.folivora.ai/uploads/short-url/bKZndy78HCXaNEAsGtA8DSGgZQm.bttpreset) (6.1 KB)

 ![image](https://community.folivora.ai/uploads/default/original/3X/1/8/1881382d899e5dee1dd5b8ae6b341eb7ad31ef64.jpeg)  
 ![image](https://community.folivora.ai/uploads/default/original/3X/7/2/7270b4bd0370ece21f6acbb5f8b82676e2476123.jpeg)

---

<div class="post-metadata">

**Author:** ![Frank1](https://community.folivora.ai/letter_avatar_proxy/v4/letter/f/a87d85/32.png) [@Frank1](https://community.folivora.ai/u/Frank1)\
**Post date:** [January 29, 2025, 4:11pm UTC](https://community.folivora.ai/t/trigger-different-behaviors-on-double-and-triple-clicks-with-same-modifier/41967/3 "2025-01-29T16:11:44Z")

</div>

Nice, that's useful. Unfortunately, BTT does not seem to block the predefined action of an app. So it triggers both actions. But I can change the modifier, all good. 😃

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [January 29, 2025, 4:16pm UTC](https://community.folivora.ai/t/trigger-different-behaviors-on-double-and-triple-clicks-with-same-modifier/41967/4 "2025-01-29T16:16:35Z")

</div>

you probably would need to block the single click as well, but them you couldn’t do opt+click in the app anymore

---

<div class="post-metadata">

**Author:** ![Frank1](https://community.folivora.ai/letter_avatar_proxy/v4/letter/f/a87d85/32.png) [@Frank1](https://community.folivora.ai/u/Frank1)\
**Post date:** [January 29, 2025, 4:19pm UTC](https://community.folivora.ai/t/trigger-different-behaviors-on-double-and-triple-clicks-with-same-modifier/41967/5 "2025-01-29T16:19:06Z")

</div>

Using Fn instead of opt is perfect. None of my apps have predefined actions with this combination. At least, none that I know of so far.

---

<div class="post-metadata">

**Author:** ![Aurel\_Buche](https://community.folivora.ai/user_avatar/community.folivora.ai/aurel_buche/32/33486_2.png) [@Aurel\_Buche](https://community.folivora.ai/u/Aurel_Buche)\
**Post date:** [January 30, 2025, 9:22am UTC](https://community.folivora.ai/t/trigger-different-behaviors-on-double-and-triple-clicks-with-same-modifier/41967/6 "2025-01-30T09:22:11Z")

</div>

Thanks, for your quick answer, it works like a charm !

I will see if I should change the modifier between Option or Fn.

I added percent\_x\_hovered\_win\_btm\_left conditions. (\<=33 ; \>33 & \<=66 ; \>66)  
Here is what I have now :

Modifier + Double click :

- on left of hovered window -\> Maximize left half
- on middle of hovered window -\> Maximize
- on right of hovered window -\> Maximize right half

Modifier + Triple click :

- on left of hovered window -\> Resize to left third
- on middle of hovered window -\> Resize to middle third
- on right of hovered window -\> Resize to right third

It feels really cool (maybe even better than what I used to have with XFCE)
