The Vengeful Polyglot

Tasker and Minimalistic Text Integration

Posted on: July 23, 2011

I know this has been coming for the longest time, so since it was requested, here is how I’ve managed my two Minimalistic Text + Tasker widgets! (This is a followup to my previous Tasker Roundup.) I haven’t quite finished my most recent color/look switch up, so I’m going to use my neon screen shots from a while back. Of course, since it’s Minimalistic Text, all of the text, colors, and specific font configurations are fully configurable.

 

Missed Calls/Texts/Email Widget

While all the widgets on this homescreen are Minimalistic Text, the bottom left one is the only one which has Tasker integration. The basic idea here is to declare three variables to keep track of new missed calls, unread texts, unread emails which are incremented when new ones arrive and cleared when the associated program is opened. I do this with 7 profiles in Tasker and then configuration in Minimalistic Text. The reason for the Screen On task is that the widget variable will not update unless the screen is on. πŸ™‚ So long as you have a lock screen, it shouldn’t be too disruptive. The last profile is to instantiate the variables upon device boot, so the widget will be populated with 0s when the phone is turned on.

Profile: Received Text

Context: Event -> Phone -> Received Text

Screen On Task: Display -> Turn On

Set %MSGCOUNT Task:

1. Variable -> Variable Set %MSGCOUNT to %MSGCOUNT + 1, check “Do Maths”

2. Plugin -> Minimalistic Text Variable -> Edit Configuration (this will take you to Minimalistic Text) ->Variable Name %MNMLMSGCOUNT, Variable Content %MSGCOUNT

Profile: Go SMS (or whichever SMS program you use)

Context: Application ->Go SMS Pro (or other SMS program)

Reset %MSGCOUNT Task:

1. Variable -> Variable Set %MSGCOUNT to 0, Do Maths

2. Plugin -> Minimalistic Text Variable -> Edit Configuration ->Variable Name %MNMLMSGCOUNT, Variable Content %MSGCOUNT

Profile: Received Email

Context: Event -> 3rd Party -> K9 Email Received (if you have a different email client, you will have to set this based on your client — I’m not sure if it works with the default ones)

Screen On Task: Display -> Turn On

Set %EMLCOUNT Task:

1. Variable -> Variable Set %EMLCOUNT to %EMLCOUNT + 1, Do Maths

2. Plugin -> Minimalistic Text Variable -> Edit Configuration ->Variable Name %MNMLEMLCOUNT, Variable Content %EMLCOUNT

Profile: K9 Email (or whichever email program you use)

Context: Application ->K-9 Mail (or other email program)

Reset %EMLCOUNT Task:

1. Variable -> Variable Set %EMLCOUNT to 0, Do Maths

2. Plugin -> Minimalistic Text Variable -> Edit Configuration ->Variable Name %MNMLEMLCOUNT, Variable Content %EMLCOUNT

Profile: Missed Call

Context: Event -> Phone -> Missed Call

Screen On Task: Display -> Turn On

Set %CALLCOUNT Task:

1. Variable -> Variable Set %CALLCOUNT to %CALLCOUNT + 1, Do Maths

2. Plugin -> Minimalistic Text Variable -> Edit Configuration ->Variable Name %MNMLCALLCOUNT, Variable Content %CALLCOUNT

Profile: Phone

Context: Application ->Call History or Phone

Reset %CALLCOUNT Task:

1. Variable -> Variable Set %CALLCOUNT to 0, Do Maths

2. Plugin -> Minimalistic Text Variable -> Edit Configuration ->Variable Name %MNMLCALLCOUNT, Variable Content %CALLCOUNT

Profile: Set Vars

Context: Event -> Phone -> Device Boot

Reset Vars Task:

1. Variable -> Variable Set %MSGCOUNT to 0, Do Maths

2. Variable -> Variable Set %EMLCOUNT to 0, Do Maths

3. Variable -> Variable Set %CALLCOUNT to 0, Do Maths

4. Plugin -> Minimalistic Text Variable -> Edit Configuration ->Variable Name %MNMLMSGCOUNT, Variable Content %MGSCOUNT

5. Plugin -> Minimalistic Text Variable -> Edit Configuration ->Variable Name %MNMLEMLCOUNT, Variable Content %EMLCOUNT

6. Plugin -> Minimalistic Text Variable -> Edit Configuration ->Variable Name %MNMLCALLCOUNT, Variable Content %CALLCOUNT

Now that all of the Tasker profiles are in order, it’s time to make the widget itself. Go the homescreen where you want the widget to be, long press, select widget, and select the size of Minimalistic Text widget you want (mine is, I believe, 1×2 horizontal). The widget preference screen will pop up. Set up all general visual preferences, like the background color and font colors. Under Layout, hit Predefined layout and select “Custom…” Then, select Custom Layout to set up exactly how the widget will be laid out.Β My particular layout for the above is:

Local Variable (%MNMLCALLCOUNT) | Static Text (“Missed”) | Static Text (“Calls”)

Local Variable (%MNMLMSGCOUNT) | Static Text (“Unread”) | Static Text (“Texts”)

Local Variable (%MNMLEMLCOUNT) | Static Text (“Unread”) | Static Text (“Email”)

And that’s all there is to it!

 

Driving Profile Widget

Tapping the widget turns on and off Bluetooth, which is the condition which activates all of my “driving” Tasker profiles.I’ve found this manual way is the easiest way to get my phone into driving mode without wasting battery on GPS conditions. The top line of text is just static, but the bottom line says “active” when Bluetooth is on and “inactive” once it’s been turned off. The way this works is, when tapped, the widget calls a tasker Task which toggles a variable that then activates a Driving profile, that then activates Bluetooth. Whew! This is probably needlessly complex, but it’s the only way I’ve found to get the behavior I’m looking for.

Toggle Driving Mode Task:

1. Variable -> Variable Add %DRV Value 1, Wrap Around 2, if %DRV Is Set

2. Variable -> Variable Set %DRV to 1 if %DRV ! Set, Do Maths

3. Variable -> Variable Set %DRVT to “Active” if %DRV Equals 1

4. Variable -> Variable Set %DRVT to “Inactive” if %DRV Equals 0

5. Plugin -> Minimalistic Text Variable -> Edit Configuration ->Variable Name %MNMLDRVT, Variable Content %DRVT

Profile: Driving

Context: State -> Variable Value %DRV Equals 1

Turn On Bluetooth Task: Net -> Bluetooth Set On

Turn Off Bluetooth Task (Exit Task): Net -> Bluetooth Set Off

For the widget, the layout is done similarly to the last profile (the text variable is %MNMLDRVT), but in order to activate the task on tap, go to “Select an activity or a shortcut” under the Tap Behavior settings, switch to the Shortcuts tab, and select “Task” under Tasker. Then, select the Toggle Driving Mode task.

 

More Resources

For most everything relating to Android devices, the forums at xda are a great resource (as well as the actual Tasker forums). There are so many possibilities with open-ended applications like this that guides pop up all the time. I hope this helps! πŸ™‚

Advertisements

5 Responses to "Tasker and Minimalistic Text Integration"

[…] My Tasker and Minimalistic Text profiles are available here. GA_googleAddAttr("AdOpt", "1"); GA_googleAddAttr("Origin", "other"); […]

I am just a tad confused–just a wee bit, ever so wee. But I got 90% of it. LOL. πŸ™‚

I wanted to make the sms widget but when I press screen on in tasker it tells me its not supported and to try ‘wake up’ in secure settings plugin….
Um… So… How do u do that?

Hey there! The issue here is that this post is now fairly out of date. πŸ˜› In Gingerbread and above (which I didn’t have at the time that I posted these profiles), Google removed the ability for normal apps to affect the system in certain ways, including waking up the device. There are workarounds you can use (I did a quick search and saw people indicating that you can have the screen turn on by using some sort of pop-up functionality, at which point if you touch the screen it’ll stay on), but there isn’t a way to wake up the device through Tasker alone. If you have root access, then you can use the Secure Settings plugin for Locale to get this functionality (and a lot of other relatively powerful functionality). You can find it in the Play store, and it will work with Tasker even though it says it’s for Locale. πŸ™‚ I do plan to do another post of my current Tasker setup on Jelly Bean, but hopefully this explains that error message. I ran into the same problem about a month ago while messing with my profiles.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Blog by a programmer cum linguist cum writer cum total geek. One who pretentiously uses "cum" in place of any other logical connectives. Direct questions to the Ask Lauren page!

My Flickr Photostream

New York City

New York City

More Photos

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 22 other followers

%d bloggers like this: