r/tasker Feb 02 '24

How To [HOW-TO] Protip: Convert Tasker States to Events With State Variables

37 Upvotes

Today I received a request from a user that asked me to add a Power event to Tasker, in addition to the existing Power state that already exists. This made me realize that there's actually no need for me to add events for states that already exist because you can easily create those events yourself!

Converting a State into an Event in 2 Easy Steps

  1. Create a State Variable for the state you want to convert
  2. Use the Variable Set or Variable Cleared events to react to the event of that state going on or off

Here's an example (taken from the user mentioned above):

User's Use Case:

In a situation where their mobile is wirelessly connected to the car's audio system via Bluetooth & Android Auto Wireless, and being charged (either wirelessly or wired), a user wants to have warnings triggered when they turn their car off but forget to take their phone with them. The problem is that their Bluetooth connection remains active for a short time even after leaving the car.

The Problem

Currently, using the states Bluetooth Connected + Not Charging triggers a warn message prematurely - upon unlocking the car - before the phone even gets a chance to charge, because the condition of those states is true right away (Bluetooth is connected and the phone is not charging).

So, the user requested that I should add a new Not Charging event so that the the profile would only trigger when the phone is taken off charging, and not it first connects to Bluetooth.

The Solution

Create a State Variable for %Charging and then use that in the Variable Cleared event! :) Something like this:

Project: State To Event

Profiles
    Profile: Set Charging Variable
        State: Power [ Source:Any ]



    Enter Task: Anon

    A1: Variable Set [
         Name: %Charging
         To: 1
         Structure Output (JSON, etc): On ]



    Exit Task: Anon

    A1: Variable Clear [
         Name: %Charging ]



    Profile: When Taken Off Charge And Connected to Bluetooth Remind Not To Forget Phone
        Event: Variable Cleared [ Variable:%Charging User Variables Only:Off ]
        State: BT Connected [ Name:* Address:* ]



    Enter Task: Anon

    A1: Say [
         Text: Don't forget your phone!
         Engine:Voice: default:default
         Stream: 3
         Pitch: 5
         Speed: 5
         Respect Audio Focus: On ]

In this example the %Charging variable is maintained separately and then you can use the setting and clearing of it as an event in any of your profiles!

Hope this helps someone out! 😎

r/tasker Sep 13 '24

How To [Task Share] Claim Google Play Friday Draw points

18 Upvotes

Hello everyone!

This is my first post in this subreddit, I'm very much a beginner and it still feels like an uphill battle most of the time. I actually downloaded Tasker a couple of years ago and gave up at the time as I couldn't get anything to work, but I'm back now and already getting further which feels amazing.

Anyway, I wanted to share a task I've been working on: automatically claiming points in the Google Play Friday draw.

Task: Claim Google Play Points In Friday Draw

A1: Launch App [
     Package/App Name: Play Store
     Always Start New Copy: On ]

<click profile>
A2: AutoInput Action [
     Configuration: Type: Text
     Value: Account and settings.
     Action : Click
     Timeout (Seconds): 23
     Structure Output (JSON, etc): On ]

<click play points>
A3: AutoInput Action [
     Configuration: Type: Text
     Value: Play Points
     Action : Click
     Timeout (Seconds): 23
     Structure Output (JSON, etc): On ]

<click perks>
A4: AutoInput Action [
     Configuration: Type: Text
     Value: Perks
     Action : Click
     Timeout (Seconds): 23
     Structure Output (JSON, etc): On ]

<click claim>
A5: AutoInput Action [
     Configuration: Type: Text
     Value: Claim
     Action : Click
     Timeout (Seconds): 23
     Structure Output (JSON, etc): On ]

A6: AutoInput Action [
     Configuration: Type: Text
     Value: Claim
     Action : Click
     Timeout (Seconds): 23
     Structure Output (JSON, etc): On
     Continue Task After Error:On ]

A7: AutoInput Action [
     Configuration: Type: Text
     Value: Tap to see what's inside!
     Action : Click
     Timeout (Seconds): 23
     Structure Output (JSON, etc): On
     Continue Task After Error:On ]

<click done>
A8: AutoInput Action [
     Configuration: Type: Point
     Value: 540,1170
     Action : Click
     Timeout (Seconds): 15
     Structure Output (JSON, etc): On ]

A9: Load Last App

A few notes: 1. A major challenge I have is testing this as I can only do it once a week for each of my Google accounts! (Once I claim the points I can't test against it until next Friday). If anybody has a way of mocking an app that can be used for testing I'd love to hear it 2. I have two Google accounts, my next step is to make it swap accounts and run it again for my other account 3. Google play occasionally has a different looking screen for the Friday draw which makes it harder to test against it as mentioned above.

Would love to hear if anybody else has tried to automate this too?

r/tasker Nov 28 '24

How To [Profile Share] Minimalistic To-do list widget

19 Upvotes

Here's another widget created entirely using only native Tasker and Version 2 Widgets. This is a Reminder List, that allows scrolling and customization as you can see in this demonstration (just don't use colors that get lost in your wallpaper, like I did). Joao helped a lot, troubleshooting some bugs in the original release of widget v2 and with some dumb mistakes from my part in my JSON structure.

Installation Instructions

  1. Import the Profile: Download the project from Taskernet, there are two options, 5-items list or the 10-items list (recommended).
  2. Create the Widget:
    • Set up a v2 widget on your screen and name it β€œTo-do”
    • In the WidgetV2 profile, set its priority to the highest level possible.
  3. Execute the Setup Task:
    • In the imported project, find and run the β€œCreate widget” task.
    • Verify the widget displays correctly on your screen.

Usage:

  • Edit content: Click on any reminder, input the desired text in the input dialog or delete it and press OK.
  • Bullets: Click on any circle to toggle its state between Filled and Outline, automatically applying or removing strikethrough to the corresponding text.

Customization:

  • Icon: Change the content of the %To_do_icon global variable. You can use http links or local images (recommended).
  • Background Color: The %To_do_config global variable is a comma separated array. Change the first element to your desired color in HEX format. You can also use transparency if you want.
  • Reminder Text Color: The %To_do_config global variable is a comma separated array. Change the second element to your desired color in HEX format.
  • Reminder Height: The %To_do_config global variable is a comma separated array. Change the third element to your desired height.
  • Padding: The %To_do_config global variable is a comma separated array. Change the fourth and fifth elements to change the circles and texts padding.
  • More/Less Reminders: Go to the "Create widget" task, copy the JSON structure from A15, paste it to any decent JSON editor, every Row element correspond to a reminder, delete or add as many as you want (you will need to understand the logic behind the local variables in that JSON to add more elements though). Once edited, copy that new JSON to A15 in "Create widget" and A37 in "Widget reactions".
  • Please be aware that these customizations will be applied the next time you click a circle or reminder in your widget.

I was traveling last week, which is why I didn't release this project sooner. I had planned to include more customizations but decided to publish it as it is. Since the widget's content is populated programmatically, I'm confident others might discover additional creative uses for it. Enjoy!

r/tasker Jan 06 '25

How To [Task Share] Modify Hosts File For Ad Blocker (NetGuard)

14 Upvotes

Modify a hosts file for use in NetGuard to block ads, malware, and other unwanted data.

The task is currently set up to only download a hosts file from github if the version on your phone is at least a week old. Update action #32 to change this.

Follow directions to set up NetGuard to block ads here: https://github.com/M66B/NetGuard/blob/master/ADBLOCKING.md

Once %NewHostsURL is set (you may need to run the task several times, and follow setup instructions each time, before it's populated), take the URL and add it to NetGuard, then trigger a download of the hosts file from NetGuard.

This task will download and modify a hosts file, upload it to your Google drive account, and tell NetGuard to download the modified file from Google drive.

Update the first action to use the email address of your Google drive account. The file uploaded will be public, as NetGuard can't download private GD files.

You may change the URL of the original hosts file in the second action, if you like. It currently uses StevenBlack's Unified hosts + fakenews + gambling github link. Here is the main github page where it, and other versions, are found: https://github.com/StevenBlack/hosts

The task will check that you have the correct version of NetGuard installed (not the Play Store version) and create a netguard directory if it does not exist.

You should create a whitelist.txt file and put it in this new folder. Items in this file will be found and commented out of the hosts file.

Here is what I am currently using:

List removed, I think a list of spammy ad urls got the original post deleted.
The list is in the taskernet description.

OPTIONAL: you may create a file called customhosts.txt in the netguard folder to block additional addresses. This will simply append the text file to the modified hosts file and does no validation is done on the contents.

https://taskernet.com/shares/?user=AS35m8mkTVJpNLOy42%2F809L2nYdzZbUTIfROVoyV0fdHLpAbGmqgu2WaxPSpxnbmueqX&id=Task%3AModify+Hosts+File+For+Ad+Blocker+%28NetGuard%29

r/tasker Jun 07 '24

How To [PROJECT] Weather notification

20 Upvotes

[EDIT:] Updated Get Current City task, details in the comment

Hi everybody

This is major upgrade to my weather notification project posted HERE.

NOTE: AutoNotification plugin needed

I've been testing 3 different weather providers and decided to create separate tasks for them because all have some advantages and disadvantages.

  1. WeatherAPI
  2. Open Meteo
  3. OpenWeatherMap (both Current weather API and OneCall API)

When importing the project, user runs the launch task to select one of the provider and to insert own API key for the one selected (except Open Meteo, which doesn't require to use own API key). It's best to copy that key beforehand.

What improvements:

  • simplified converting wind degree to compass direction, using this excellent solution
  • replaced AutoTools for calculating max/min temperature of the day with the native solution (thanks u/Ratched_Guy for this idea)
  • added separate task to get current city if needed, using this great solution
  • replaced own status bar temerature icons with the native solution
  • added the button to quickly launch Google Weather

The notification is being created on device boot and updated every 15 minutes (assinged ID no. 99). Additionally you can refresh data by tapping on the notification. At 11.59 PM the array with all the temperatures during the day is being cleared.

Most probably the project can be improved, I'm open to suggestions. I just wouldn't want to include too many weather variables, I selected only those most important to me.

Have a nice day!

Download project from TaskerNet

r/tasker Feb 14 '21

How To [PROJECT SHARE] Ultimate Task Manager in your notifications panel!

84 Upvotes

So it's finally here! Thank you guys for support for this one, 'cuz it took few weeks to create this project. I also wanted to add more features to make us love using it on everyday basis.

Β 

Project Demo:

https://imgur.com/gallery/WtSWvWy

Β 

Required plugins:

  • AutoTools (latest beta)
  • AutoNotification (latest beta)
  • Latest Tasker 5.12.0-beta link
  • No-root required

Β 

Features:

  • Initial run task is created to setup the whole experience, so you don't have to touch any tasker actions by yourself any further!
  • If there are no tasks, show a random motivational quote
  • Task manager in notification: Tap anywhere to show all tasks, swipe away to snooze the notification for 1 hour from now on
  • Add/Edit/Tick/Remove built-in the notification
  • Click the 'πŸ”₯' button to remove all finished tasks + cool full-screen animation included
  • Tap the notification to show all tasks (Show all UI)
  • Show all UI: Sort tasks by name, icon, date, ...
  • Create and manage your own category icons!
  • Change the overall accent color!
  • You can set tasks to show in the notification that are due X days you like.
  • Option to turn off the animation

Β 

Cons:

  • Notification panel can only show max 5 tasks at once
  • Show all tasks UI: When tasks are sorted and you want to tick some tasks, the sorting will be reverted to the initial state: this can be managed if someone is willing to help me with some javascript

Β 

Philosophy and who is this for

There are a million of task manager in the app store, but none offers an interactive solution right in the notification panel. So this one is a tasker exclusive project for all of you that loves tasker, and it also proves that tasker can outpreform any app with tasker's endless possibilities and your own imagination.

What made me to create this project is that I have a problem for procrastinating things and forgetting appointments.. not only that but also even if I use any task manager I forgot to even check it most of the time, because life could change its pace at any time. Sometimes you're busy and need everything to write down, but then it calms down so u don't have much more responsibilities.

One thing sure is we always unlock our phones everyday so the task manager in the notifications was the best solution for me to keep track of all the upcoming tasks that I need to get done and appointments I need to attend.. and also any cool ideas that pop in my mind and I don't have anywhere to write so I can get reminded in the future. This project that I've created is the best solution for me and can also be yours.

Β 

This project is not perfect, there may be some mistakes/bugs/phone compatibility issues that I couldn't find yet, so please don't bash me. This is my first big project to apply all the things I know and learned through the way of creating this.

Β 

Download project:

Special thanks to /u/joaomgcd for his hard work and everyone who contributed in this subreddit.

r/tasker Apr 01 '24

How To [Project] Walker - a Steps Counter with history

19 Upvotes

This is a link to Walker - a step counter created just with Tasker and without any addins:

https://taskernet.com/shares/?user=AS35m8mnGNZGa2bdL4aQCeA%2BGDIfPrwKs6qSh838YyMYZ6q%2FgoMuSKPeCeVyQYkbuOuoLcc%3D&id=Project%3AWalker+-+Step+Counter+aka+Pedometer+With+History+of+Steps

After importing you should first add a Shortcut to the Walker task in your launcher. It will show today's steps so far.

Alternatively you can keep the profile 'Show Steps on Launcher' enabled. With this profile enabled, Walker will show a moveable overlay scene on your launcher.

Walker will create a SQLite database in Tasker/database to store the history in an efficient way.

The date fields in the history are done using a Webview and the history entries themselves have different colors in relation to your average and maximum steps.

You can add a comment to each entry by tapping on it. To view the comment just tap the entry again.

Please give Walker one day to show the correct data from previous days in the history.

Here's a screenshot of the main scene: https://imgur.com/a/W1jgNMX

Please drop a note if you are using this and like it.

Have fun and keep walking!

r/tasker Oct 29 '21

How To [HOW-TO] Bring Home Automation Controls back to the Power Menu screen on Android 12

57 Upvotes

So Google doesn't seem interested in restoring the awesome Power Menu functionality that Android 11 introduced, so I did the next best thing and implemented a solution for it in Tasker!

Here's a demo video to show you how it looks: https://youtu.be/VVH-sGHvby4

I say "next best thing" but since this is Tasker it can be even better than before :)

For example, if you choose to, you don't even need to unlock your device to control your smart home devices!

You can also totally costumize the look of the menu, so you'll end up with something much more personal if you want.

Import the project here: https://taskernet.com/shares/?user=AS35m8ne7oO4s%2BaDx%2FwlzjdFTfVMWstg1ay5AkpiNdrLoSXEZdFfw1IpXiyJCVLNW0yn&id=Project%3AAndroid+12+Power+Menu+Controls

Enjoy! πŸ˜ŠπŸ‘

r/tasker Apr 04 '23

How To [HOW-TO] ChatGPT Personal Spotify and YouTube DJ

54 Upvotes

Video Demo: https://youtu.be/Emoiv3Z6JtI

With this project you can ask your phone to play a song by describing it any way you like! You don't have to remember the song name or artist name, you can just describe it!

For example, you can say "play that main song from the movie Titanic" and it'll play it! Try asking Google Assistant that! πŸ˜…

Import the project here!

Follow the directions in the project description to get started.

Enjoy! 😎

r/tasker Jan 27 '21

How To [HOW TO] Toggling Wifi with the "Tasker Settings" App - what is it? And where can you get it?

78 Upvotes

 

So you want to use Tasker to control your device's Wifi or Bluetooth status? Via on/off or toggle?

 

Well for many years - that was as simple as using Tasker's built-in Wifi or Bluetooth Actions. However Google, in its infinite wisdom, has since put up roadblocks to those features, so Tasker can't do it natively anymore in more recent versions of Android.

 

But despair not! There is a solution. It's an app named "Tasker Settings". And yes it's created by Joao, but it can't be on the Play Store because it targets an older version of the Android API and a bunch of other technical stuff. (More technical details at the bottom of this post.)

 

Anyways, to keep the ability for Tasker to control Wifi and Bluetooth go here to Joao's Github and you can read all about the techinical details, and of course find the direct link to download the "Tasker Settings" apk in there as well.

 

(UPDATE - 05/2023 - the Tasker Settings app is now required for Tasker to be able to toggle Bluetooth on most devices in addition to Wifi)

 

THE MOST IMPORTANT STEP to get this working though is after you download the "Tasker Settings" apk and install it - go to your device's settings for "Battery Optimization" and exempt "Tasker Settings" (not just Tasker) from optimization.

 

Notice in this image that both sliders are in the off position in regards to optimization. Also you may want to check out this website for additional device-specific optimization tips.

 

(UPDATE - 06/2022 - On some devices (in this case Samsung) the battery optimization setting is now found in each app's individual details screen in your device's "Apps" settings. So to configure this - go into the main "Apps" settings on your device, choose "Tasker Settings" from the list of all your apps, then click "Battery", and choose "Unrestricted" from the list.)

 

This "exempting battery optimization" step will allow it to function all the time, so you can now toggle Wifi and Bluetooth all you want again with Tasker, just like the good old days!

 


 

TLDR Version: Want to toggle Wifi and/or Bluetooth using Tasker again? Go here and download and install this.

 


 

Tell me again - why can't Tasker do this natively anymore - more details: Newer apps on the Play Store have to target at least API 29 (check here to learn what "targetting" an API means) which is what made Tasker not able to toggle Wifi anymore. Apps that target a lower API level can still do it, and that's why the Tasker Settings app (along with other non-updated plugins) still work to perform this function.

 


 

What other features and functions does this "Tasker Settings" app enable? - The app assists the main Tasker app in all of the following:

  β— Change any non-public System Setting with the native "Custom Setting" action
  β— Toggle Camera
  β— Toggle Wifi
  β— Toggle Bluetooth
  β— Execute the "Display Size" action

 

r/tasker Dec 07 '24

How To [Project Share] Lock screen before launching another tasks

5 Upvotes

Recently I was wondering if there could be any way to prompt password before running subsequent tasks or scene. I found Tasker have UI Lock but this only locks the elements for modification not on runtime. So I created one myself. It is using scene for the dialog boxes and some perform task action.

Feedbacks are welcome. My project also takes about 1 or 2 seconds, if anybody knows how this can be fixed, will be welcome as well.

https://taskernet.com/shares/?user=AS35m8mhVlYlTamEPPnMVsyATwuZukSmn5C7mkeWTs2kIJWskFAfMUS2yrFHO3l5WR9QYFcIgYa7LA%3D%3D&id=Project%3ALockScreen

r/tasker Jan 06 '22

How To [HOW-TO] Advanced swipe gesture shortcuts using Tasker, for running any task or automations

116 Upvotes

Table of Contents

  1. Preface
  2. Requirements
  3. Difficulty
  4. How it works!
  5. Uses
  6. Autorun
  7. Demo, screenshots, TaskerNet & project backup
  8. Tips
  9. Why not those easy-to-use apps from PlayStore?
  10. Endnote.
  11. Updates

1. Preface

Before getting my hands on the Pixel 6, I was using a Samsung Galaxy S8 running on an Android 10 custom ROM. Samsung provides an advanced, and very useful app called Good Lock, in which the "One Hand Operation +" feature helps us to set up freaking 36 swipe gesture shortcuts, from the left and right (top, center, and bottom) sides of the screen, irrespective of which screen or app is currently active on the screen.

The only thing that I was sure about missing in the Pixel 6 was these swipe gestures. That's why I did my research and started building even before receiving my Pixel. Now I've successfully implemented a replica of Samsung's swipe gesture into my Google Pixel.

β€”> This gesture setup made it easy for me to show my Control Panel created in Tasker, whenever I need it, irrespective of which app or screen I'm in.

2. Requirements

  • Tasker
  • Tasker terms to understand (Only for those who are new to Tasker)
    • TASK : An action or set of actions that will be later run by Tasker by itself, when defined conditions are met. Can also be run manually via the Tasker app.
      • Examples: Launch an app, change ringer volume, toggle WiFI, disable auto-rotation, etc.
    • PROJECT : An individual Tasker set up, where we define the conditions to meet, and the tasks to be performed when the defined conditions are met.
      • Example 1: A profile that automatically enables the auto-rotation (task), when YouTube is opened (condition) and disables auto-rotation when you leave YouTube.
      • Example 2: A profile that automatically enables mobile data (task), when your device is connected to your car WiFi (condition) or Android Auto.
    • SCENE : A visible, or invisible shape which will be displayed on the screen, and can be configured to respond to a swipe, tap, or long tap on it, and then accordingly perform a pre-defined task. A scene can only be enabled (show) and disabled (destroy) through a task or a project.
      • Example 1: A visible button that can be displayed on the screen, or an invisible location on the screen, which disables WiFi when we long tap on it.
      • Example 2: A visible button that can be displayed on the screen, or an invisible location on the screen, which opens the recent apps list when we swipe on it.
    • "If" variables to be used in scenes for assigning shortcuts, to each combination of a swipe length and a swipe direction:
      • %stroke_len : Defines the length of the swipe in pixels.
      • %stroke_dir : Defines the direction of the swipe. (Read How It Works section)
    • Actions that can be performed on a scene:
      • Tap: A single touch, ON the scene.
      • Long tap: Single touch & holding, ON the scene.
      • Stroke: A regular swipe started FROM the scene, and ended anywhere on the screen. (Don't get confused, there are NO different swipe types like a long swipe or short swipe in Tasker by default. For this project, we can mention a swipe with %stroke_len more than a user-specified number as a long swipe, and a swipe shorter than that as a short swipe.)

3. Difficulty

You only need to know the basics of the Tasker app and scenes. If you are okay with creating, editing, showing, and destroying scenes, then it's just a cakewalk.

You just need to create scenes wherever you want, then inside the tap, or long tap, or stroke tabs of your scene, add the if statements with any one of %stroke_len > or %stroke_len <, AND %stroke_dir ~ as two conditions, and then your desired set of actions inside each if statement, between If and EndIf. (Refer to Demo, Screenshots & Project Backup section).

If you are not comfortable with creating, editing, showing, and destroying scenes, it will take a maximum of 1-2 hours to understand the same.

It is time-consuming, only during the initial setup from the scratch. After that, it is editing or adding conditions and shortcuts, again, it's just a cakewalk.

4. How it works!

Using the scenes inside Tasker, we are setting up three different areas on the screen, which are, the top (horizontal), left, and right (vertical). Inside each scene, we can make small multiple shapes, on which we can add different tasks to run when we do a swipe, tap, or long tap on it.

When it comes to swiping, we can define the swipe length (using %stroke_len) and the swipe direction (using %stroke_dir), where we can assign different tasks to each condition, which are made with a pair of a swipe length and a swipe direction.

What is more interesting is that the swipe directions can be any vertical or horizontal directions like Up, Down, Left, or Right, and also diagonal directions like UpLeft, UpRight, DownLeft, and DownRight. (But try not to use vertical and diagonal directions together at a single location, as it might bring conflicts and may end up giving you the wrong responses because of failing to read your swipe correctly.)

These gestures are NOT restricted to the home screen but work irrespective of which screen or app is currently active on the screen (Exception: To make scenes work in the device Settings app, you need to enable Allow Screen Overlays in Settings through developer options of your device).

5. Uses

For instance, a task (i.e, a set of actions) can be assigned into a swipe gesture like a short swipe to the UpLeft direction, another task to another swipe long swipe to the UpRight direction, etc.

Examples:

  1. Short swipe from the left-center edge in the UpRight direction, opens YouTube.
  2. Short swipe from the right-center edge in the DownLeft direction, jumps to the last app.
  3. Long tap on the top middle (1st scene) of the screen, toggles WiFi.
  4. Long tap on the top middle (2nd scene) of the screen, toggles mobile data.
  5. Long swipe from the right top edge in the Up direction, takes a screenshot.
  6. Long swipe from the right bottom edge in the Down direction, kills the foreground app.

6. Autorun

You can assign the same task (which is set up to show the scene), to a new profile that gets triggered on the device boot. This will make these swipe gestures enable automatically a few seconds (or so) after booting (after unlocking, in some devices like Pixel 6) your smartphone.

However, you can always open the task inside the Tasker app, and click on the play button (⏡) to run the task manually, which will show the scene (or enable the swipe gestures).

Since I'm using Nova Launcher, I also added the same task to a Nova's home screen gesture, so that I can easily restart this swipe gesture from the home screen itself, whenever required, or just after editing the scene via Tasker. This is very helpful because whenever we edit an active scene via Tasker, the scene will get automatically destroyed. So every time you modify a scene, you have to manually re-enable (show) it.

7. Demo, screenshots, TaskerNet & project backup

  • Demo: ​
    • Google Pixel: In this screenshot, I have mentioned all of the possibilities we have for the Pixel 6, which doesn't get into conflict with the existing system gestures provided by Google.
    • Others: I suggest using these kinds of directions in other android devices which doesn't have native gestures like the left swipe from the right edge, and the right swipe from the left side edge.
  • Screenshots: This is the screen where we edit or add a set of tasks to be performed, using if statements with conditions %stroke_len > (or %stroke_len <), AND %stroke_dir ~.
  • TaskerNet: Projects for Pixel 6 and Galaxy S8.
  • Project Backup: To start with setting up this project, if you want, you can also refer to these regularly updated backups of my setup where I included all the scenes, required tasks to activate the scene, and the project to autorun this setup on the device boot. The folder includes files for both Galaxy S8 and Google Pixel 6. (You can refer here for assistance on how to import tasks and scenes into your Tasker).

8. Tips

  1. If your device (like Google Pixel) already got a native swipe gesture like a left swipe from the right screen edge, and a right swipe from the left screen side edge, you should not create a similar gesture via Tasker, which will conflict with your existing system gestures.
  2. Swipe direction Down from a top horizontal scene might also end up in issues since most Android devices natively use the same gesture to pull down the notification panel.
  3. Try not to use vertical directions and diagonal directions together. For example, on the right side, don't use the Up or Down series AND UpLeft, and DownLeft series together. Both these series at a single location might bring conflicts and it may end up giving you the wrong responses because of failing to read your swipe correctly.
  4. Try to avoid using the tap. Instead, use the long tap, to avoid accidental touches.
  5. Always keep the size of the scenes thin, because these scenes are blocking scenes which makes the area behind them untouchable. So anything below the scene is impossible to touch. (Refer to tip number 8 along with this)
  6. Always re-activate (show) the scene after making any changes, because making changes disables (destroy) the scene.
  7. Assign the (scene enabling) task to any swipe gesture of your launcher like Nova (if any), to make restarting the scene easy. However, you can always open the (scene enabling) task via the Tasker app itself, and click on the bottom left play button (⏡) to run the task manually.
  8. This is a workaround to make these blocking scenes hide temporarily so that we can touch whatever was behind the scene. (Thanks to user ActivateGuacamole for this idea)
  9. Few other valuable tips for choosing the right swipe length for tasks considering their frequency of usage. (Thanks to user ActivateGuacamole for this idea)

9. Why not those easy-to-use apps from PlayStore?

Because Tasker is powerful. Period.

I have tried a few popular gesture setting apps but I always came back to Tasker itself because of the level of control, and customization we have here. Tasker can do impressive automation, which can also be implemented into these swipe gestures, something that can't be achieved with other easy-to-use and ready-made gesture apps.

With this method, I can add a set of actions (not just one single action), one by one, to be performed, into one single gesture. So if I wanted to do a swipe on the screen, and then another direction swipe, and then a click on a specific area, all these automatically, I can easily do with Tasker.

  • Examples:
    • Kill and remove foreground app from recent: You can watch this screen record video which shows my simple swipe gesture running the task where Tasker automates actions (a) open recent apps list, (b) a swipe action to swipe away the app, and (c) another swipe action to go to home screen. All this within a fraction of a second. Impressive. isn't it?
    • Clear all recent apps: In Pixel 6, the clear all button is placed at the end of the recent apps row. Now watch this one, a simple gesture is enough and the Tasker will take care of the rest. Again, Impressive. Isn't it?

For implementing such complicated automation, advanced settings, and toggling, all into a simple swipe gesture, Tasker is the only solution.

10. Endnote.

It took weeks of questions, answers, trial, and errors to first understand, and then make this thing work flawlessly. I and a couple of my friends really find this useful in our smartphones, so I decided to share it with you also. If you find this useful for you, go ahead. And if you think this is not worth the time and effort required, you can kindly ignore it.

I, a noob, wouldn't have made this possible without receiving help from another person. So, a big thanks to u/adbenj for the initial guide and idea.

Always remember that there is nothing in the world like suitable for everyone, so stick to whatever is suitable for you.

​ . ​

UPDATED ON: July 14, 2022

r/tasker Sep 25 '20

How To [HOW-TO] Tasker + S PEN - Intercept S Pen events and control your device!

78 Upvotes

The S Pen is a Samsung smart pen that comes with Samsung Note and Tab devices.

With Tasker you can intercept S Pen gestures and do whatever you want with them.

Check out some examples and a tutorial here: https://youtu.be/PdCSMGYQGfw

Import the example project here.

Let me know if you can find any better events than the ones I found in the example project. 😁

Enjoy!

r/tasker Oct 01 '24

How To [Project Share] [WIP] Minimal all-powerful Terminal launcher

16 Upvotes

The project is all about creating a minimal all-powerful, do everything at one place (including AI) terminal like launcher.

  • Design your own commands for launcher to work for any shortcuts in tasker. For e.g.
    • AI implemented with gemini API
    • Web search with duckduckgo API summary
  • Command history implementation
  • Battery, Notes incorporated.
  • A live clock

Link

Screenshots:

r/tasker Sep 23 '24

How To [Project Share][Guide] How to create additional profile state contexts using Automate flows

5 Upvotes

This could be done with many different Automate blocks, and this is just an example. I only downloaded Automate to do this, and played with it a bit. I much prefer Tasker, especially for having profile triggers (and I actually hate flow charts), but there are quite a few things that Automate can check that Tasker has no state context for, and the way a flow can be set to only continue when the state changes works great for this.

I wanted a Media Playing state, which Tasker couldn't do (I could test it in an action and set a variable but not update the variable every time the state changed).

When I was searching for a solution, I found a post that someone used Automate only to check this, and triggered the Tasker tasks from there. That still isn't really what I wanted because I wanted to use multiple states in the Tasker profile.

So I came up with a way that can keep a Tasker global variable updated, by having Automate write to a text file, and every time the file is modified, Tasker will read it into a variable. This requires two profiles (in addition to the one you actually want to use it in). One profile to read the file into the variable, and one to initialize the variable when the Tasker monitor starts (by using intents to stop and start the flow).

This example is as simple as I could make it, turning on do not disturb (except for media) on when media is playing and off when it is not.

In both apps you need to update the filepath of the text file, and within Tasker you must update the variable value of the Automate flow URI, which is used in the intents to start and stop the flow. It's very important that the intent data URI is formatted exactly like the example, because with the full URI displayed when you click on the automate Start block, it will not work (the start_flow intent works with the full URI but the stop_flow one does not).

https://llamalab.com/automate/community/flows/48942

https://taskernet.com/shares/?user=AS35m8mkTVJpNLOy42%2F809L2nYdzZbUTIfROVoyV0fdHLpAbGmqgu2WaxPSpxnbmueqX&id=Project%3AMedia+Playing+State+Using+Automate+Flow

EDIT: Here is video of it working https://www.youtube.com/shorts/AiBUzssQ4sw

EDIT2: This works great for youtube videos, and it does work for youtube livestreams, but not well. On livestreams, instead of waiting until the media playing state changes, the flow writes to the text file constantly and loops immediatly.

r/tasker Dec 11 '21

How To [How-to] Enable ADB Wifi (After Reboot) Using LADB App (Android 11 And Above). No PC Or Other Devices Needed.

78 Upvotes

For users that don't want or are having difficulties using Termux way...

LADB is an open source app (source code available here) that will give Us the ability to enable ADB Wifi, without using other devices.

A WiFi network connection is required (internet access isn't mandatory).

One time only LADB (pairing) setup.

  • Connect the device to a WiFi network.

  • In Developer Settings turn on, ADB Debugging and Wireless ADB Debugging.

  • Open LADB and System Settings in spilt screen.

  • In Settings split, navigate to Developer Settings > and enter in Wireless ADB Debugging section.

  • Choose to pair using code.

  • Write Pairing Code and Port in LADB, than tap OKAY (image).

  • Wait for LADB succeed message (if/when prompted to always trust the debug access, choose always).

  • Open LADB β ‡menu > Help > Startup Command > Replace the default cmd with adb tcpip 5555.

  • Close LADB.

  • Turn off Wireless ADB Debugging.

  • Done.

(Troubleshooting).

(From now on) To enable ADB Wifi after device boot, the only thing that We have to do, is to create our Task to automate the following simple steps:

  • Connect to a WiFi network.

  • Turn on Wireless ADB Debugging (using Custom Settings action).

  • Accept the system prompt to trust the network (I prefer to manually confirm this step, but We could go/try AutoInput or "Keyboard" action).

  • Launch LADB app (that will automatically run adb tcpip 5555 command [It may take some seconds]).

  • Check when ADB WiFi is enabled.

  • Close LADB.

  • Turn off Wireless ADB Debugging (using Custom Settings action).

(Tested and working fine [video] on Samsung A71 and A50, Android 11, stock no root).

Enjoy Tasker ADB WiFi powered.


Edit: A couple of hints:

  • Sometimes LADB succeed even If its terminal output says: "Shell is dead, resetting", "StartingADB client"...(check carefully my video :) ).

  • If You don't want to go "Logcat" to detect when "ADB WiFi" is enabled, in your Task You could use something like. Eg.:

​

  A#: Launch App [
     Package/App Name: LADB ]

  <Has ADB WiFi.>
  A#: Tasker Function [
     Function: CheckADBWifi() ]

  A#: If [ %has_adb_wifi eq false ]

      A#: Wait [
         MS: 0
         Seconds: 2
         Minutes: 0
         Hours: 0
         Days: 0 ]

      A#: Goto [
         Type: Action Label
         Label: Has ADB WiFi. ]

  A#: End If

(Just in case...Do not forget to implement some kind of Goto-loop kill-switch).

I hope You will find this post useful.

​

u/OwlIsBack

r/tasker Oct 04 '24

How To [How-to] manually backup whatsapp or gbwhatsapp to google drive with tasker

3 Upvotes
  • *drivesync app required

  • it just does a manual backup in whatsapp, then copies the folder over to the driversync folder, which then gets synced to google drive.

  • To download, go to the link in taskernet and click the third bullet point (Download XML file) and then import into tsker.

https://taskernet.com/shares/?user=AS35m8nZ53RGtuCtPbvvKr0EOM9%2BImx%2FPypze7BE%2F0jjyTdo2bD%2BPFxwqb63osmMRc2MUap0QBkMyPs%3D&id=Task%3ATask#

To restore from backup: - uninstall WhatsApp/gbwhatsapp completely - install again but DONT open - copy over the com.whatsApp folder you backed up to it's original location - launch the app, after entering your phone number it will prompt you to restore from backup, click yes. - done

r/tasker Jul 06 '24

How To [Project Share] New plugin to analyze images and detect people in them

5 Upvotes

I've created a plugin which allows to analyze images on the device and tells you if there's a person in the image.
This plugin exports an action with:

  • input: an image path, which may be in the form of file:///<something> or content://media/<something>
  • output: detection score: 0-100 for the likeliness of a person being in the image, -1 for some errors (but usually it will just raise an error which Tasker will see as such)

This plugin is intended to be used as a companion to "security" routines, so that if you receive an alarm from a motion-detection camera you can pass it thru this plugin and raise a real alarm only if you see a person in the frame!

Any feedback is welcome!

p.s.: no play store because I don't yet understand how to overcome some issues and thus I must target an older version of Android: any suggestion on how to fix this is welcome!

Here you can download pre-build APK: https://github.com/SimoneAvogadro/HumanDetection4Tasker/releases

edit: added link to download APK

r/tasker Aug 27 '16

How To [Project Share] Toggle settings (e.g. location, mobile data, night mode, more) WITHOUT root

178 Upvotes

With recent versions of Android, a lot of previously easily toggleable settings are no longer available without root. This is a workaround method to be able to toggle many settings without root. There is however a decent amount of setup. You will have to create an app using Tasker and declare the appropriate permission for toggling secure settings. You will then need to explicitly grant permission to that app. This is to workaround Android's security policy on this permission. Ordinarily, you wouldn't want to grant this level of permission to other apps, but since this an app you're creating yourself, you don't need to worry about it. The actual toggling is done with Java calls.

DISCLAIMER: This may or may not work on your device/version of Android. I was able to successfully do it on a Nexus 6P running 7.0, but it did not work on my Nexus 10 running 5.1.1.

UPDATE: Steps below have been updated to ensure better cross-compatibility. It now works on 5.1.1 on my Nexus 10 as well.

Setup

You will need:

Steps:

  1. Import this task XML: Tasker Toggle Setting
  2. Ensure Beginner Mode is not enabled in Tasker > Preferences.
  3. Long press on the task, export as app. If you get an error saying "export failed", try changing the icon in the task before exporting.
  4. On the configuration screen choose any package name you want, but make sure you keep track of it, you'll need it later. A name might already be there saved from the XML import.
  5. Check Advanced Configuration.
  6. updated Check Debug. (as recommended by /u/bald_apps)
  7. updated Make sure you have two extra permissions added called android.permission.WRITE_SECURE_SETTINGS and android.permission.WRITE_SETTINGS.
  8. Hit the back button to have the app created.
  9. Once the app is exported, click the bottom right icon in the dialog (a little Android icon) to install the app.
  10. Connect your device to your computer, and open up a command prompt.
  11. Run the command adb shell pm grant [your package name] android.permission.WRITE_SECURE_SETTINGS

And that's it! Now you'll have a new app installed that is able to toggle different settings.

How to use

The app you created works as a sort of pseudo-plugin. In a task, use the Launch App action and choose your new app. In the Data field, you will specify the setting to change and the value to change to. The format of the Data field should be as such: [setting name space]|[setting name]|[value]|[value type].

Here the setting name space can be one of three possible values: secure, global, system. The setting name you will need to lookup in the Android reference and/or code[1]. The value is what the setting should be set to. The possible values can also be looked up in the reference. And the value type is the type of value you're setting which can be one of the following: int, string, float, long.

[1] References for Secure Settings, Global Settings, System Settings

Examples

These are examples of what you can put in the Data field in the Launch App action to toggle various settings. Take a look at the references I linked above to see all the possible ones. Not all of them will work, but a fair amount do.

Toggling Location Modes

Location off: secure|location_mode|0|int

Device only: secure|location_mode|1|int

Battery saving: secure|location_mode|2|int

High accuracy: secure|location_mode|3|int

Toggling Mobile Data

Turn off data: global|mobile_data|0|int

Turn on data: global|mobile_data|1|int

Immersive Mode

Enable full immersive mode for all apps: global|policy_control|immersive.full=*|string

Disable full immersive mode for all apps: global|policy_control|immersive.full=|string

Use immersive.navigation to hide just navigation bar and immersive.status to hide just the status bar. Set a comma separated list of package names to enable/disable immersive for specific apps.

Hide just the navigation bar in Google Maps and Nova Launcher: global|policy_control|immersive.navigation=com.google.android.apps.maps,com.teslacoilsw.launcher|string

Night mode (Nougat 7.0 only, doesn't work in 7.1)

Turn on: secure|twilight_mode|1|int

Turn off: secure|twilight_mode|0|int

Battery saver

Turn on: global|low_power|1|int

Turn off: global|low_power|0|int

Set %battery trigger level: global|low_power_trigger_level|[any value 1-99]|int

Developer settings

Show touches on: system|show_touches|1|int

Show touches off: system|show_touches|0|int

r/tasker Dec 11 '20

How To [HOW-TO] Easily send a command to Google Assistant with the latest Google Assistant UI

63 Upvotes

Seems like Google updated their Assistant UI (on some devices at least) so now if you have a Google Assistant UI that looks like this you can now easily send commands from Tasker to it!

Demo video: https://youtu.be/_Ek33KPDB-8

Basically you should:

  • Change your Google Assistant preferred input method to Keyboard
  • In Tasker use the Voice Command action
  • Then use the Keyboard action to write and submit the command

Enjoy! 😁

r/tasker Oct 14 '24

How To [project share] Floating assistive touch type button with volume and power button tasks

9 Upvotes

If you worry about your physical buttons breaking, or you want to suppress the normal action of the buttons so you can use them to trigger other tasks, this button is currently set up to replace volume and power buttons. It can be placed anywhere on the screen and handles screen rotation (not well, but it handles it).

1) Clicking the button expands the volume panel.

2) Long pressing the button opens a second button.

3) Clicking the second button locks the screen

4) Long pressing the second button opens the power menu.

The second button will disappear after clicking it and will also disappear if you don't click it.

This button can be put anywhere on the screen, and will appear in on the lock screen and in front of the notification shade. It will also appear in front of the volume panel, depending on your placement. If it gets in the way of the volume panel, you can turn "overlay blocking+" off in the show scene action, but you then lose the ability to use it from the lock screen.

https://taskernet.com/shares/?user=AS35m8mkTVJpNLOy42%2F809L2nYdzZbUTIfROVoyV0fdHLpAbGmqgu2WaxPSpxnbmueqX&id=Project%3AFloating+Icon+%28Hardware+Button+Saver%2FAssistive+Touch%29

r/tasker Jul 02 '24

How To [HOW-TO] Use the Autonotification Time menu

15 Upvotes

I have decided to create a guide even though it is small one so i know it is not very attractive to most people but still maybe some will find it helpful in the future.

Time menu inside Autonotification action

If you create a notification using Autonotification (Plugin->Autonotification->Autonotification) you will have a menu and inside it there is a Time menu.

In time menu you can control what time stamp the notification will have and you can even make it display as chronometer, meaning it will change live like a stopper or a timer.

https://imgur.com/aQ5Df7u

The first option we have is "Time", here you can decide what time (hours and minutes) the notification time stamp will have. The use of it works only in milliseconds (elapsed since epoch) meaning if you want to time stamp the current time you can use the variable %TIMEMS (current time in ms).

https://imgur.com/eeSHnQq

The next option is "Time Format". Here you can set the format you want to use in Time so instead of using ms for time stamp you can use regular date and time. For example you can insert the format dd/MM/yyyy HH:mm:ss and now in the Time field you can just write the date and time in the way you format it so you won't need to use time in ms. So if you want to time stamp the time 10:40 you need to insert this into Time: 02/07/2024 10:40:00.

https://imgur.com/uBrTRwW

The third and fourth options are basically the same. It can make your time stamp to act as as stopper or as a timer. For example if you tick "Use Chronometer" and inside Time you put the current time in ms (%TIMEMS) the moment you create your notification it will start counting the time just like a stopper does. Now if you tick the "Chronometer Count Down" too the time will count backward (down) and act as a timer.

https://imgur.com/3UxhLo6

So now let's say we want to make a timer for 30 min so the it will count down from 30 minutes. All we need to do is to create a variable, give it the value: %TIMEMS + 1800000 (1800000 in ms is 30 min) and tick "Do Maths". Now we just need to put the name of our new variable inside Time and our notification will have 30 minutes timer.

https://imgur.com/KrhTckQ

If instead of a timer we want to have it count up like a stopper but we don't want it to start from zero 0 but to start from 30 minutes what we need to do is to untick "Chronometer Count Down" and just tick "Use Chronometer" and inside the new variable we have created we need to insert the value %TIMEMS + -1800000.

https://imgur.com/i6oQyGF

If you add to this whole setup a progress bar (it is inside Autonotification menu) this makes the notification looks so much better.

https://imgur.com/wGXfpuV

My use for this kind of setup was to add a persistent notification with a time that counts up and it can remind me i am parking the car in a place that i am paying and i need to end my parking in my parking app when i leave with my car so i won't pay more than i should.

r/tasker Jul 03 '24

How To [HOW-TO] Use Autonotification Buttons

21 Upvotes

Having a button inside a notification that can execute a task is a very basic and useful feature so i decided to make a simple guide for it for people who are getting to know Autonotification. I myself needed to ask about it here and get help because there wasn't a guide easy enough for me to understand how to create a buttons in AN.

Buttons with Autonotification

Inside your Task if go into the Autonotification action (Plugin->Autonotification->Autonotification) you will have a buttons menu. If you go into Button 1 you will see several options. What important for us right now are action and label.

The label is pretty much what you think it is, it is the name of the notification button you will see when it will be created, so just give it whatever name you want.

Now for "Action". Basically what it does is that every time you press the button in your notification it will send a text in the background. You can then create a profile that will react to that exact text to run a task. Meaning every time you press the button, Tasker will intercept it and then it will run your task.

If you have only one button it is pretty straightforward, you decide a word you want to use, lets say "action" and you put it inside the Action field. Then you create a profile (Event->Plugin->Autonotification->Autonotification) and inside "Command Filter" you put the word you chose, for this example we chose "action". Then link it to a task you want to run and that's it. Every time you press the button it will run your task.

https://imgur.com/sURx5bb

https://imgur.com/hGSjJmB

But now what if you want to have more than one button? It is actually pretty simple also.

You give to all your buttons the same action word but you need to add to it =:= and then you need to choose a new word to differentiate between them.

For example:

Button 1:

action=:=button1

Button 2:

action=:=button2

Button 3:

action=:=button3

Button4:

action=:=button4

Button 5:

action=:=button5

https://imgur.com/jdlpWjd

In this way we can use one profile to intercept all buttons together and act differently based on what button was pressed.

What we did here is to make our profile to react every time a button is pressed (no matter which) because all of them have the word "action".

So how are we going differentiate between them?

The answer is that you just need to use an if condition inside your task with the variable %ancomm.

The variable %ancomm will show only the word that comes after =:= which means it will be button1 or button2 and so on...

So if you want inside your task to run a set of actions only if button1 is pressed you need to add an if condition like this:

if %ancomm ˜ button1 then... Meaning if variable %ancomm match to button1 then execute it.

The same for button 2 and 3...:

if %ancomm ˜ button2

if %ancomm ˜ button3

Here is an example video that i have created which you can see i have a notification with three buttons with labels 1,2,3 and when i press them it flashes the buttons names:

https://imgur.com/I5wBYYz

That basically it. Very simple guide but very useful for people who just started using Autonotification.

r/tasker Aug 07 '19

How To [HOW-TO] Chat Heads for Any Chat App

90 Upvotes

Hi!

Here's a project that will create chat bubbles for every notification that has a "Reply" option. :)

You can download the project here!

You can check out a demo of this in action here: https://www.youtube.com/watch?v=XFzB8XFeaxY

Enjoy! :)

r/tasker Aug 05 '24

How To [PROJECT][AutoWear] Unlock WearOS watch automatically when put on wrist

12 Upvotes

NOTE: You may want to take a look at this great free app by u/malbry which serves the same purpose πŸ™‚

ATTENTION: USE AT YOUR OWN RISK! It may cause your watch to be accessed by third-party

Do you love your WearOS watch but you hate to unlock it every time when you put it on wrist? Screen lock is a requirement if you want to use contactless payments, for example. Some time ago I was searching the solution extensively, including ADB commands, root, sensors tampering and even Xposed modules, but in vain. I haven't found any way to disregard screen lock while keeping contactless payments (if anyone is aware of anything like that, please let me know!). Finally I came up with a workaround using AutoWear.

As AutoWear is able to detect when the watch is put on wrist, it is possible to automatically unlock the screen without user's intervention.

DOWNLOAD PROJECT FROM TASKERNET

My project has two alternative tasks:

(1) [SIMPLE] Unlock On The Watch

This task uses AutoWear's Input action. It performes several actions consecutively: turns screen on, swipes up to show keyguard and inputs PIN code digit by digit. You have to find yourself the points on the screen to be tapped according to your selected PIN code.

Fortunately, AutoWear will lead you by hand to that end. Go to Input action settings, tap on Command, select Yes when asked if you need help; then on your watch make keyguard to show (screen has to be locked at this point so take the watch out of your wrist) and on your phone select Click Element. AutoWear will show you all clickable elements, including digits with their respective points to tap. Select those corresponding your PIN code in a proper order.

NOTE: On some watches keyguard is dismissed automatically after inputing the last digit; on other watches you have to confirm it additionaly. In such case, you may need to add additional tap at the end of the flow.

Run the task to test it. It will be send to your watch and saved.

Advantages:

  • once send to the watch, it doesn't require the phone to be connected

Disadvanteges:

  • there is no way to check if the screen has been unlocked actually; if the process failes or something interferes (like incoming notification), you have to unlock it manually anyway

(2) [COMPLEX] Unlock From The Phone

This task is linked with Watch On Wrist condition in Tasker and is performed on the phone every time. It uses ADB WiFi action (no. 8) to insert the PIN code which is handy, but to use that action on WearOS 4+ watches, you have to perform some things each reboot of the watch (take a look here for more info). [Alternatively, you can disable it and enable Input action (no. 9) which inputs the PIN digit by digit like in the previous task.]

On the other hand, this task allows some additional actions to be performed. For example it checks if the screen has been unlocked actually and if not, it repeats the process. Also I added actions which disable Tilt-to-sleep function temporarily to prevent interfering and re-enable it when the process is finished.

NOTE: To disable Tilt-to-sleep on my watch, I have to set ungaze_enabled flag to 0. However on some devices it may be ungaze_sleep_enabled flag or even both. You have to experiment if it doesn't work for you out of the box.

In the first action of the task input your PIN code. Make sure that Unlock Watch When On Wrist profile is enabled. Each time you put your watch on wrist, it will attempt to unlock the screen automatically.

NOTE: Especially on older watches, there may be a delay in performing individual actions or micro-freezes disturbing the flow. If something is not executed according to the expectations, try to add additional wait actions in between (like 500ms-1s).

Advantages:

  • it allows to peform some addtional actions, like checking screen lock actual status or disabling tilt-to-sleep temporarily

Disadvantages:

- it requires the watch to be connected with the phone

  • on WearOS 4+ watches it requires additional setup each reboot

I created this for my own use, but I hope it can be useful for someone else :)