# Is there and "On Idle" trigger

**URL:** <https://community.folivora.ai/t/is-there-and-on-idle-trigger/28246>\
**Category:** Configuration Help & General Discussion\
**Created:** [August 30, 2022, 1:30pm UTC](https://community.folivora.ai/t/is-there-and-on-idle-trigger/28246 "2022-08-30T13:30:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheBartoMan](https://community.folivora.ai/letter_avatar_proxy/v4/letter/t/c0e974/32.png) [@TheBartoMan](https://community.folivora.ai/u/TheBartoMan)\
**Post date:** [August 30, 2022, 1:30pm UTC](https://community.folivora.ai/t/is-there-and-on-idle-trigger/28246/1 "2022-08-30T13:30:11Z")

</div>

I would like to launch a certain app if i haven't touched the keyboard or mouse for X amount of seconds.

Also close the same app if i then move mouse or type.

Is this possible?

---

<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:** [August 30, 2022, 2:00pm UTC](https://community.folivora.ai/t/is-there-and-on-idle-trigger/28246/2 "2022-08-30T14:00:42Z")

</div>

There is currently no such trigger, but I'll add it to my TODO list. BTT already monitors the idle state to perform some internal clean up when the machine is idle, so it should be easy to add.

---

<div class="post-metadata">

**Author:** ![TheBartoMan](https://community.folivora.ai/letter_avatar_proxy/v4/letter/t/c0e974/32.png) [@TheBartoMan](https://community.folivora.ai/u/TheBartoMan)\
**Post date:** [August 30, 2022, 3:30pm UTC](https://community.folivora.ai/t/is-there-and-on-idle-trigger/28246/3 "2022-08-30T15:30:06Z")

</div>

Perfect Answer! Thank you.

---

<div class="post-metadata">

**Author:** ![Berserker](https://community.folivora.ai/letter_avatar_proxy/v4/letter/b/ba8739/32.png) [@Berserker](https://community.folivora.ai/u/Berserker)\
**Post date:** [September 21, 2023, 1:10pm UTC](https://community.folivora.ai/t/is-there-and-on-idle-trigger/28246/4 "2023-09-21T13:10:55Z")

</div>

Any progress on this? I'm also interested in using an "On Idle" trigger

---

<div class="post-metadata">

**Author:** ![ddsforlife](https://community.folivora.ai/user_avatar/community.folivora.ai/ddsforlife/32/23160_2.png) [@ddsforlife](https://community.folivora.ai/u/ddsforlife)\
**Post date:** [April 21, 2024, 12:58am UTC](https://community.folivora.ai/t/is-there-and-on-idle-trigger/28246/5 "2024-04-21T00:58:10Z")

</div>

Hi Andreas! When can we expect an Idle Trigger? I'm sure your TODO list is quite large!

---

<div class="post-metadata">

**Author:** ![bmgoau](https://community.folivora.ai/letter_avatar_proxy/v4/letter/b/977dab/32.png) [@bmgoau](https://community.folivora.ai/u/bmgoau)\
**Post date:** [September 15, 2024, 9:10pm UTC](https://community.folivora.ai/t/is-there-and-on-idle-trigger/28246/6 "2024-09-15T21:10:57Z")

</div>

Another here interested in an "idle" trigger @Andreas_Hegenberg 🙂

---

<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:** [September 16, 2024, 7:21am UTC](https://community.folivora.ai/t/is-there-and-on-idle-trigger/28246/7 "2024-09-16T07:21:30Z")

</div>

While there still is no idle trigger, you can now easily create one yourself with 4.694

There is a new variable that can be queried "BTTIdleTime"

You can use this with the "Trigger On Script Output Change" to create your own idle trigger:

```auto
let idleTime = await get_number_variable("BTTIdleTime");
if (idleTime > 10) {
return true;
} else {
return false;
}

```

 ![image](https://community.folivora.ai/uploads/default/original/3X/9/b/9b91109b8bae36b5ce12969bb4c4e51163be18e3.jpeg)
