Niagara-Issues icon indicating copy to clipboard operation
Niagara-Issues copied to clipboard

Tasker Integration - Add / Remove Favourites

Open folkg opened this issue 7 years ago • 26 comments

If you could use Tasker conditions to add / remove apps from favourites you could create your own kind of smart app suggestions. If you are at work, you could add app x, y, z to favourites. If you are at home, you could remove x, y, z and add a, b ,c. Similar if you are driving. If you have a certain calendar event, you could add a certain app to the favourites.

folkg avatar Mar 07 '19 17:03 folkg

Other actions could be:

  • set text colour of specific launcher item
  • show/hide letter bar
  • hide/unhide app
  • turn on/off start screen notifications

Bushmills avatar Mar 07 '19 22:03 Bushmills

Controlling your favorites with tasker sounds great. Besides the upcoming inbuilt Media & Car category you could create your own rules when an app should show up. Hope you can understand that the integration will be a pro feature, I believe the feature is necessary, but would a cool enhancement to Niagara. @Bushmills the tweaks you’re describing sound more minor to me. They’re also neat, but I would say they are on lower priority.

8bitPit avatar Mar 09 '19 13:03 8bitPit

@8bitPit: Yes, minor in terms of effort to implement, I hope. But useful: Changing item colours resulting from some events are great indicators, without cluttering the screen with all kinds of stuff. I do use those with Lightning Launcher which provides Locale API (which tasker is using too, also Automagic which I'm using), for a handful of things. For example, proper "home/away" detection - I have a small reliability issue with this, so colouring the nav icon or label accordingly allows me to verify on a glimpse. Some modal stuff, like activating the proximity sensor for a specific action by gesture (of which I want some indicator too), charge/discharge (though I'm not using an item label for this) and some more. I think charme of colour change comes just from this being a very simple indicator. I've removed font size change of individual items prior to publishing thinking that may be a too involved action to interface.

Bushmills avatar Mar 09 '19 13:03 Bushmills

Thanks for the explanation @Bushmills. I can understand now why changing colors for example would be neat. I'll see what I can do and let you know here when I start using their APIs.

8bitPit avatar Mar 13 '19 16:03 8bitPit

As to what @8bitPit mentioned in one of the issues linked above:

We plan to make this possible by integrating Tasker or other automation apps like Automate

I personally would prefer Automate over Tasker. I think Automate has much better UI and is easier to use. But of course someone might disagree – so it might be good to vote on this?

Martin5001 avatar Sep 28 '20 10:09 Martin5001

@Martin5001 luckily Automate and Tasker support the same API :)

8bitPit avatar Sep 28 '20 19:09 8bitPit

As does Automagic, and supposedly a whole bunch of automation apps.

Bushmills avatar Sep 28 '20 19:09 Bushmills

+1 for this - it'd be great to be able to geofence favourite apps for example

stephenwilley avatar Feb 16 '21 06:02 stephenwilley

Would really love this feature :), btw thanks for all you hard work

josevega96 avatar Feb 22 '21 06:02 josevega96

Would really love this! Also I would really like to have the possibility to hide the custom widget when certain conditions are met: for example when the media widget appears

Manu99it avatar Mar 17 '21 22:03 Manu99it

I would love this to be able to show and hide my work apps during the work day. Glad to see this is gaining traction!

IanDTrapp avatar Mar 22 '21 03:03 IanDTrapp

Niagara is about to become a full blown launcher. I think it's time to integrate with tasker. Tasker has lots of context. Fews to mention:

  • When I get notification, i can make it favorite. So, I can see app and notification without searching.
  • When I am at home, I want youtube and netflix to be my favorite.
  • When I am at office, I want autocad, gps, unit conversion app to be my favorite.(only weekdays)
  • If internet is connected, in my home, then make browser favorite.
  • and many more. I thinks colour changing with tasker is unnecessary since tasker itself can change accent of phone in android 12. You can make red accent for office and blue for home from tasker.

sandeshdroid avatar Jul 09 '21 06:07 sandeshdroid

My suggestion is to get inspiration from Lightning Launcher for an idea of what range of functionally could be made controllable through Locale API. That launcher has the most comprehensive support of any launcher I've been looking at, beating Total Launcher (which provides only token support) by far.

I did write a short series of articles about launcher and automation app integration, which also show (but don't demonstrate all functions - there are too many) the extent of support that launcher offers. These articles have been published and are available online, as a possible substitute for actually looking at the launcher, if interested, at https://automagic4android.com/forum/viewtopic.php?t=5898

Btw, Lightning Launcher is still my launcher of choice, for exactly this reason.

Bushmills avatar Jul 09 '21 07:07 Bushmills

I loved Lightning Launcher and TUI launcher(text based launcher, stored all parameters in file, just edit file with any automation app). Now, I want things that works with little effort. Anyway I am exiced to see what Niagara can do with automation.

sandeshdroid avatar Jul 10 '21 10:07 sandeshdroid

I think the "trick" with an automation app supported launcher is simply: bind as many as possible launcher capabilities to the automation API, and let the user decide which ones he/she will actually invoke. A function made available but remaining unused hurts less than an unavailable one which the user intended to use, but can't The more extensive the set of provided functions, the fewer the launcher feature requests which can't be answered with "it's within scope of what you can customize yourself".

Bushmills avatar Jul 10 '21 11:07 Bushmills

Please follow send intent approach. This have two benefits: no ui for tasker is necessary and any app(like shell, broadcast app) can do it. This is how Notify for MI Band does this.

sandeshdroid avatar Aug 07 '21 12:08 sandeshdroid

Here are some of my additional suggestions: ☐ Option to change icons/walpepers via CLI / TaskerPlugin / intent ☐ Sending time for next Notification summary to tasker(event)/logcat ℹ️Why? 1️⃣This give the ability to automatically change icons and wallpapers to day/night Sets using Tasker and custom triggers (hour, sunset etc) 2️⃣Information about next notification summary will allow e.g. turn on Bluetooth 5min before in order to receive notification on my smartwatch

⚡Simple tutorial on how to add pligin in just 5 minutes: https://youtu.be/48IVJgDtu6Y

Thanks

damElo850 avatar Aug 26 '21 19:08 damElo850

Any progress on this?

I'd really like to have a deeper Tasker integreation, but even a "condition to show a specific app as favourite", as mentioned by @8bitPit, would be super cool and reach a broad set of people. I can think of showing a "Maps" app when connected to a specific bluetooth device or a "Home Automation" app when connected to a specific wifi. Eventually it could even be combined with a time/day. This would make Niagra really smart!

CheariX avatar Oct 14 '21 09:10 CheariX

Now this is 3 yrs old and may be no progress at all. Is it possible to make a separate foss 'niagara launcher tasker plugin' app, so dev and community both can work together. It will help to make niagara app minimal, bugs free if any to innocent non tasker niagara user. The app can be distributed through github, so no confusion or negative review bombing on playstore.

sandeshdroid avatar Jan 15 '22 05:01 sandeshdroid

+1 This would be an awesome addition. Especially because the Niagara Launcher focuses on simplicity and cleanness. It would allow anyone to customise the launcher without adding any unnecessary UI elements to the launcher itself.

Developer-Mike avatar Jan 05 '24 19:01 Developer-Mike

Unfortunately, this features seems to receive the lowest priority. At least, we haven‘t got any information about its progress for a long time. It looks like Niagara is currently focusing more on appearance features (icons, wallpapers, clock styles).

CheariX avatar Jan 07 '24 15:01 CheariX

Unfortunately, this features seems to receive the lowest priority. At least, we haven‘t got any information about its progress for a long time. It looks like Niagara is currently focusing more on appearance features (icons, wallpapers, clock styles).

One of the reasons these have all been released now is because they were already being developed for a long time at different times, so having a customization themed release cycle made it fruitful (along with addressing a number of customization pain points at once).

This year should be focused elsewhere, like quality of life updates and hopefully some other main demands. It's another major feature so it'd require blocking out some time for it.

For now, I suggest advocates highlight exactly what kind of things they'd like to do with the integration to provide more context, and upvote.

Oddward avatar Jan 10 '24 08:01 Oddward

Here are my suggestions for the plugin:

Events: ✅Niagara button tapped,moved up or held down🛠️example usage🛠️ tapping Niagara button turns on/off light bulb in room(with home assistant plugin) or activates performance mode or kills background apps

Actions: ✅Change wallpaper/icon pack, theme,fonts color🛠️example usage🛠️ change wallpaper+theme+icon pack based on time of day or weather ✅Action to launch shortcuts static and dynamic(from apps) created in Niagara 🛠️example usage🛠️ action to launch shortcut of radio with favorite station or favorite discord server or specific conversation/chat on Messenger/Whatsapp/telegram etc.

More about dynamic shortcuts: https://www.reddit.com/r/tasker/comments/gkounp/pluginbeta_taskerlaunchershortcut/

Simple tutorial how to add plugin to tasker in 5 minutes: https://youtu.be/48IVJgDtu6Y

damElo850 avatar Jan 10 '24 16:01 damElo850

My suggestion for actions would be as the original title suggests: Add / Remove Favourites

As @folkg and @8bitPit pointed out originally, being able to update that 'front page' list depending on whether you're at work, or some other Tasker based trigger, would be great and allow a user-controllable extension of the 'Bluetooth is connected so show the audio player' style behaviour.

stephenwilley avatar Jan 10 '24 16:01 stephenwilley

I agree with @stephenwilley that there's no need to overcomplicate things. What we need is a straightforward API that lets us alter the favorites list.

The API should have the capability to accept an Intent with the following parameters:

  • Package name
  • Index of insertion

If the app is already in the favorites, it should be moved to the specified position. Furthermore, we need a separate Intent that only requires the package name as a parameter to remove an app from the list.

That would be my idea for implementing the feature. But maybe there is a better idea 🤷🏻‍♂️

Developer-Mike avatar Jan 10 '24 19:01 Developer-Mike

Someone also requested changing the favorites based on the device mode (e.g. bedtime mode). That should be doable using Tasker, but might also be great as a standalone trigger for non-power users.

TFackler avatar Feb 26 '24 11:02 TFackler