
Our exit task will simply clear the variable. This value will be used in the first profile. The %TIMES variable is the current time in seconds, and to get the time stamp 5 min ahead of time, we will simply add 300sec to the value. This profile will have 2 tasks Entry task will set the timer – Variable set: I will use to contexts: Display off and AutoNotification Intercept (fill from existing – to match the app, title, and text). When the incognito tab is opened a notification is created, and it stays there as long as tabs are open. We want this to happen when a display is off, and when chrome incognito tabs are present. The second profile will set the timer for us. Then use Variable Clear to clear the time context variable. Link this profile to a new task – run shell, and execute: We are going to change the value of the variable to drive the entire profile. Populate both From and To fields as this way context will act like an event. In time context, instead of setting a numeric value, choose the variable icon. Root will be required, however, it is possible to do this with AutoInput plugin, by pressing on the incognito chrome notification in the status bar. To close the chrome incognito tabs we will use a run shell action. Contains only 2 profiles, which handle setting the time stamp, and closing chrome window.

Time: From %ChromeTimer Till %ChromeTimerĪ1: Run Shell A2: Variable Clear Get Internal Actions Big: false ] Enter: Set Chrome TimerĪ1: Variable Set Ī1: Variable Clear Notification Text: Close all incognito tabs State: Display State State: AutoNotification Intercept [ Configuration:Event Behaviour: false Close incognito tabs when left open for five minutes Links to the project files can be found in the video description. Follow the video or read on for all the instructions.
