Putting a custom icon or text into the status bar?

1,135 views
Skip to first unread message

Hippo Man

unread,
Nov 27, 2019, 8:15:26 PM11/27/19
to Tasker
Does anyone know of a way to get Tasker to put a custom icon into the status bar of my rooted Android 10 device? Or perhaps to write custom text into the status bar?

Even if Tasker can't do this directly, is there some 3rd-party package or plugin that Tasker can utilize to do this?

João Dias

unread,
Nov 28, 2019, 5:51:08 AM11/28/19
to tas...@googlegroups.com
You can do that with the Notify action right? :)

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


Message has been deleted

Hippo Man

unread,
Nov 28, 2019, 8:12:28 AM11/28/19
to Tasker
On Thursday, November 28, 2019 at 5:51:08 AM UTC-5, joaomgcd wrote:
You can do that with the Notify action right? :)

I don't want to add a notification to the status bar. I just want to be able to put a non-clickable icon there which shows a specific state ... for example, just like the Airplane Mode icon does. I thought that the Notify action always creates a full-fledged notification with complete notification semantics. Am I incorrect about that?

João Dias

unread,
Nov 28, 2019, 8:18:41 AM11/28/19
to tas...@googlegroups.com
No, you're correct. :) Unfortunately there's no other way to do it, sorry!

Rich D

unread,
Nov 28, 2019, 8:28:02 AM11/28/19
to Tasker Google Groups Post
You can use the Tasker icon for that. 

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/bd7210cb-9e6d-4f14-9827-7d06bff3e0ad%40googlegroups.com.

Hippo Man

unread,
Nov 28, 2019, 8:35:48 AM11/28/19
to Tasker
On Thursday, November 28, 2019 at 8:18:41 AM UTC-5, joaomgcd wrote:
No, you're correct. :) Unfortunately there's no other way to do it, sorry!

Hmm ... is there perhaps a way in Tasker to have it change the color of my status-bar icons? I'm looking for a way to show the ringer/vibration state in the status bar. On my OnePlus 7 Pro, there's a "Volume" icon for that which only shows up when I use the manual switch on the device. If I change the ringer/vibration state via Tasker or any other software, that icon doesn't show up.

I'm looking for a way to make *some* sort of UI change in Tasker which indicates my current ringer/vibration state. I could live with it being shown by altering status-bar colors.

... or is there perhaps some other way to indicate this state, given that the "Volume" icon isn't controllable via software on my device?

Hippo Man

unread,
Nov 28, 2019, 8:39:20 AM11/28/19
to Tasker
On Thursday, November 28, 2019 at 8:28:02 AM UTC-5, Rich D wrote:
You can use the Tasker icon for that.

Can I set and unset the Tasker icon via a Tasker action? Also, I'm looking for a four-state setting. Is it possible via one or more Tasker actions to choose a different icon or different color for the Tasker icon, and to selectively show it or not show it?

Rich D

unread,
Nov 28, 2019, 9:34:42 AM11/28/19
to Tasker Google Groups Post

Can I set and unset the Tasker icon via a Tasker action?

Yes

Also, I'm looking for a four-state setting. Is it possible via one or more Tasker actions to choose a different icon or different color for the Tasker icon,


Yes


and to selectively show it or not show it?


That does not look currently possible. You can set some tasker preferences but not that one. Perhaps João could add that one.


Hippo Man

unread,
Nov 28, 2019, 9:56:05 AM11/28/19
to Tasker
Well, if there is a transparent Tasker icon, I could simulate this case using that icon.


ktmom

unread,
Nov 28, 2019, 10:19:47 AM11/28/19
to Tasker
Just thinking outside of the box a bit, you could create an AutoTools web screen using, for example, a bubble preset and position it anywhere on the screen you want. You could make it small and put it on top of the status bar. Or you could make it a long narrow line and position it just below the status bar, just above the nav bar or vertically along one of the sides.


This post gives an overview that you could build on:
https://notenoughtech.com/tasker/dialer-floating-bubble/

Hippo Man

unread,
Nov 28, 2019, 5:40:16 PM11/28/19
to Tasker
This kind of out-of-the-box idea is exactly what I'm looking for here. Thank you!

Now I'm on my way to AutoTools ...


Hippo Man

unread,
Nov 28, 2019, 7:50:08 PM11/28/19
to Tasker
On Thursday, November 28, 2019 at 5:40:16 PM UTC-5, Hippo Man wrote:
[ ... ]
Now I'm on my way to AutoTools ...
 
Stop the presses!!

I solved my problem.

It turns out that there is a Global variable accessible via Custom Settings called three_Key_mode (note the capital "K"). The value of that variable can be the integers 1, 2, and 3. If it is set to 1, the "Volume" icon shows up in the status bar in the same way it appears when the manual switch is in the top "Silent" position. If that variable is set to 2, the "Volume"  icon shows the same thing as if the manual switch is in the middle "Vibrate" position, and if that variable is set to 3, the "Volume" icon goes away, which is exactly what it does when the manual switch is in the bottom "Ring" position.

This three_Key_mode variable only affects the "Volume" icon, and it has no effect on the actual sound/vibration mode of the device.  Therefore, I can do my Tasker-based setting of the sound/vibration mode, and then I can do a Custom Setting of three_Key_mode to either 1, 2, or 3, depending on the setting I have chosen.

Note that there is also System variable available via Custom Settings called three_key_mode (lower-case "k") which is *not* settable via the Custom Settings action. That variable contains the actual state of the manual switch. But this System variable is irrelevant for my purposes.

Note that this specific behavior probably only exists in recent OnePlus devices. However, for other similar issues that people might face, an analogous use of Custom Settings might provide a solution.

Excesior! (Latin for "Onward and upward!")

Rich D

unread,
Nov 29, 2019, 6:50:19 AM11/29/19
to Tasker Google Groups Post
Nice find.....  Did you find that with just using the custom settings?

I wonder what other system icons can be manipulated like that?

Hippo Man

unread,
Nov 29, 2019, 7:30:02 AM11/29/19
to Tasker

On Friday, November 29, 2019 at 6:50:19 AM UTC-5, Rich D wrote:
Nice find.....  Did you find that with just using the custom settings?

I wonder what other system icons can be manipulated like that?

Yes. I went into Custom Setting and utilized the magnifying glass next to "Name" for each of "Global", "Secure", and "System" settings, and I looked through the complete list of settings for all of them. At the time, I wasn't looking for settings that pertained to any other icons, so I don't know if any such settings exist.

I also used "Find" and played with the manual switch on my device to see which custom settings got changed. This methodology might be helpful for finding custom settings that pertain to other icons.




Reply all
Reply to author
Forward
0 new messages