HomeTaskerFun times with Smarter Tasker NavBar actions

Fun times with Smarter Tasker NavBar actions

Tasker 5.7 comes with NavBar Action, so let's try a couple of things out!

Tasker 5.7 is out! All of you who subscribe to the beta channel got to test the beta features early, but now we all can play with one of the latest addition: Tasker NavBar action. The Joao’s video is impressive, so I decided to take a little more time and show you in details about how things are done! I used this action before in my USB File Transfer project. As usual, I will add my own spin to Tasker NavBar actions.

What are Tasker NavBar actions?

You can now customise the buttons that appear in the NavBar directly with Tasker. This modification had been possible before, but it was never so easy. Thanks to Tasker NavBar action you can change the buttons, layouts and associated function depending on the context.

Tasker NavBar actions can be linked to a default android action (back, home, recent, etc…), a keyboard button (Enter, F1, Backspace, etc…), left unbound or linked with a custom Tasker’s task. In addition to that, you can pick the icon (icon with have a white overlay applied) and it’s density using the scale factor [1.0 – default].

How many buttons you could have in your NavBar? Joao’s says “many” so the limit is the actual size of your NavBar and the icon’s density.

Let’s take advantage of that and create the following:

I will lean on the tutorials (where applicable) I wrote before, so some of these actions might need you to refer back to a previous tutorial to fully understand the concept.

Cast to “active” computer

In one of my previous tutorials, I used EvenGhost to let Tasker know, which computer is currently active. This information changes dynamically, so as soon as I switch computers, Tasker can send the information to the right device instead of spamming all of them. I will use the base of this, to not only create a custom action and send the information to an active PC but to also display an Icon of the active PC in the NavBar. This way, you know exactly where the information is going thanks to the visual input.

Facebook on %ActivePC

When Facebook is open, an icon will appear on the screen to cast your Facebook session to an active PC. The active PC is the last computer you used based on the system wake events. To detect this, you will have to share this information using EventGhost.

  • Open Facebook active PC
  • Display and update the icon of the active PC
  • Show only when Facebook is active

Unlike my original tutorial, the activator comes with the icon in the NavBar which I can change, should the active PC changed. So I added the routine that will change the target PC as soon as you wake the other system. Since I’m using system.idle messages, there is a 1-minute timeout. If you change the computer and return to the same PC within 1 minute, the change won’t be acknowledged.

(Link to the tutorial)

WhatsApp on %ActivePC

Instead of repeating the same profile twice, I put another spin on the WhatsApp app. You can use the WhatsApp web interface but requires a login. I’m going to automate this task in the following way.

  • Open WhatsApp Web on active PC
  • Display and update the icon of the active PC
  • Show only when WhatsApp is active
  • Double Tap to login in incognito mode
  • Automatic QR scanning

To use WhatsApp web you have to scan the QR code. The information about your login is retained if not used in the incognito mode. If you have EventGhost, you can open WhatsApp Web in the incognito mode. Since incognito mode doesn’t hold session info, QR scan is needed each time you want to use it. I will assign this to the double tap to automate the process.

(link to the tutorial)

Use NFC to get a custom light controls

While there is no easy way to track your indoor location just yet (the new Bluetooth standard will come soon with “inch alike” 3D position accuracy) I can use NFC tags directly in Tasker to set custom controls. In the tutorial, I will show you how to create controls for lights.

  • Display custom light controller triggered by NFC
  • Ability to change the rooms
  • Control 2 light sources with HTTP API
  • Display lights status independently in the NavBar

I’m controlling 2 smart sockets to trigger the lights. You can read more about these here and here. These will cover how I got the REST API and how to use and flash ESP based chips in your smart sockets. Note these do not require NodeRED to be used with Tasker. I would strongly recommend it. If you want to get started with NodeRED – check this tutorial for beginners.

(link to the tutorial)

End of day alarm option (timed events)

We all have the end of day routines. Brushing teeth, taking a shower, kissing your kids’ goodnight etc. Some of us not working Monday to Friday, or work in less predictable patterns. This profile will:

  • Use TIME context to show an additional icon to set the alarm
  • The context can be “smarted up” by various location variables

It’s a simple, but very effective use of the NavBar actions in Tasker. Rember the times when Google Assistant would suggest things that you should do based on multiple contexts? This is a non-invasive version of it.

(link to tutorial)

Better clipboard manager

Previously, I created a clipboard manager which was activated via slide gesture. I think having the trigger visible in the navbar on clipboard change would be a much more elegant solution.

  • NavBar is activated by clipboard change
  • NavBar is timed and is available for 15 sec
  • Clipboard supports unlimited entries, but it’s limited to 10 by me

I like this trigger better. I can have it as a NavBarAction in Tasker on any screen and since it is going away after a set amount of time, I don’t find it annoying.

(link to tutorial)

Set USB “File Transfer” automatically

I have covered this before, so you can read all about it here. I wanted to include this NavBar action in my project and incorporate the NavBar action with others.

  • select the “file transfer” option automatically on connection
  • return to previous NavBar action

(link to tutorial)

Music playback controller

You can move the playback controlls to the NavBar as well. These will show in the NavBar when music app is enabled and will go away when you are done listening to the music. The NavBar will also update the state when playback status is changed voa 3rd party like Bluetooth remote or in app button.

  • usual media controls (back, pause/play, skip)
  • dynamic NavBar updates
  • available only when the music stream is on
  • support for Google Play Music and other apps

(link to the tutorial)

While creating this tutorial, I planned to simply run all tasks individually, but I quickly discovered an opportunity to link it all together. After all, it would be nice if our light controller wouldn’t be overridden each time you open Facebook.

I created a slightly elaborate system of exclusions which in essence return to the most important active NavBar action in Tasker or returns the default one if there are no active NavBars.

(link to tutorial)

Conclusion

Because of the “wrapper”, this tutorial will come in parts. Each part will contain a separate profile for you to use. Should you want to use all of them at once, you will also need the last profile as well as modified profiles for each NavBar action in Tasker. As you can imagine this is not a tutorial for a single article, as for now I counted over 20 tasks in Tasker and I’m not 100% finished. If you have any questions or suggestions it’s not too late to add it in this Reddit thread.

PayPal

Nothing says "Thank you" better than keeping my coffee jar topped up!

Patreon

Support me on Patreon and get an early access to tutorial files and videos.

image/svg+xml

Bitcoin (BTC)

Use this QR to keep me caffeinated with BTC: 1FwFqqh71mUTENcRe9q4s9AWFgoc8BA9ZU

New to Tasker?

Tasker Quick Start – Getting started with Tasker

0
From newb to not so newbie in 10 min

Best Tasker Projects

How to use Raspberry PI as WOL (wake on lan) server

0
While you could wake up your PC from a mobile directly, having a dedicated server capable of doing so is the best solution. The reason is simple. You can hook up as many devices as you wish with a single endpoint. This is why Raspberry Pi is perfect for this.

How to wake on LAN computers and put it to sleep with Power Menu,...

0
How to Wake on LAN properly via Android, Alexa, Google Assistant and Web

7 awesome Bluetooth keyboard shortcuts for Android

0
7 unique Android shortcuts that you can add to any Bluetooth keyboard.

Smart overnight charging with Tasker

0
Still keeping your phone plugged in overnight? Try smarter overnight charging with this profile

One thing that Join app can’t do and how to fix it with Tasker

0
It's not possible to share the clipboard automatically between join accounts registered to 2 different emails. But you can fix this with tasker.

Essential Guides

Tasker: Seconds into DD:HH:MM:SS (dynamic)

0
It's time to.... ok it's a pun, but I will show you how to master time and convert seconds to DD:HH:MM:SS dynamically

4 ways to organise Tasker projects

0
Keep your Tasker tidy!

A better way to store Tasker credentials

0
The more clever way of managing credentials

Annoyed with dozens of AutoApps populating your app drawer? Here is a fix!

0
Clear your app drawer from the clutter in seconds

Putting AutoTools pie chart to a good use – SSID logger

0
Who wants a piece of the pie (chart)?