# \#functions

**URL:** https://forum.kustom.rocks/tag/functions/9.md

[Latest](https://forum.kustom.rocks/latest.md) · [Categories](https://forum.kustom.rocks/categories.md) · [Tags](https://forum.kustom.rocks/tags.md)

---

## [Issue Description & Feature Request: LockStar Widget Selection / Preset Support](https://forum.kustom.rocks/t/issue-description-feature-request-lockstar-widget-selection-preset-support/13539)

<div class="topic-metadata">

**Author:** [@T\_R](https://forum.kustom.rocks/u/T_R)\
**Replies:** 0\
**Last updated:** [November 17, 2026, 9:22pm UTC](https://forum.kustom.rocks/t/issue-description-feature-request-lockstar-widget-selection-preset-support/13539 "2026-11-17T21:22:11Z")

</div>

In the standard user flow for adding widgets (such as KWGT widgets), users typically have to place default-sized grid boxes on the screen first, tap on those boxes, and then choose or assign the specific widget they want…

---

## [Hard lagging into crash](https://forum.kustom.rocks/t/hard-lagging-into-crash/13461)

<div class="topic-metadata">

**Author:** [@Jinx](https://forum.kustom.rocks/u/Jinx)\
**Replies:** 1\
**Last updated:** [September 13, 2026, 9:39pm UTC](https://forum.kustom.rocks/t/hard-lagging-into-crash/13461 "2026-09-13T21:39:06Z")

</div>

I’m running Moto Razr 2025 (base model, not Ultra/Plus), and my KLWP editor has developed a serious lag issue that started right around a security update on August 1st. The editor runs fine for the first 1–2 minutes afte…

---

## [More options for battery info text](https://forum.kustom.rocks/t/more-options-for-battery-info-text/13152)

<div class="topic-metadata">

**Author:** [@TotallyNotWrench](https://forum.kustom.rocks/u/TotallyNotWrench)\
**Replies:** 3\
**Last updated:** [July 6, 2026, 3:12am UTC](https://forum.kustom.rocks/t/more-options-for-battery-info-text/13152 "2026-07-06T03:12:36Z")

</div>

Thought it would be a good idea to add a time remaining on battery before it dies in the battery info text options

---

## [How do I 'FIX' this fix error?](https://forum.kustom.rocks/t/how-do-i-fix-this-fix-error/13323)

<div class="topic-metadata">

**Author:** [@Ian\_McCluskey](https://forum.kustom.rocks/u/Ian_McCluskey)\
**Replies:** 1\
**Last updated:** [June 30, 2026, 5:57am UTC](https://forum.kustom.rocks/t/how-do-i-fix-this-fix-error/13323 "2026-06-30T05:57:33Z")

</div>

How do I fix the ‘Missing Requirements’ error, Post Notifications, with the ‘Fix’ box that doesn’t work? I’ve made a clock widget with various links to apps on my phone so I can access them straight from the widget. Howe…

---

## [Media Listener beta conflict](https://forum.kustom.rocks/t/media-listener-beta-conflict/13257)

<div class="topic-metadata">

**Author:** [@zuluvol](https://forum.kustom.rocks/u/zuluvol)\
**Replies:** 0\
**Last updated:** [May 13, 2026, 4:44pm UTC](https://forum.kustom.rocks/t/media-listener-beta-conflict/13257 "2026-05-13T16:44:58Z")

</div>

Running a Pixel 10 pro XL with Android build numberCP1A.260505.005 and KWGT pro version 3.18b530915. everything populates nicely for text. With the exception of music data. It would appear that there is a broken media li…

---

## [Battery info works in editor but not in widget](https://forum.kustom.rocks/t/battery-info-works-in-editor-but-not-in-widget/13199)

<div class="topic-metadata">

**Author:** [@PureSpider](https://forum.kustom.rocks/u/PureSpider)\
**Replies:** 1\
**Last updated:** [April 3, 2026, 10:02pm UTC](https://forum.kustom.rocks/t/battery-info-works-in-editor-but-not-in-widget/13199 "2026-04-03T22:02:50Z")

</div>

Just tried setting up a widget to show the remaining battery duration until charged/empty by using $tf(bi(fullempty))$. It works well in the editor but the widget always shows “moments ago” so I removed the $tf()$ bit a…

---

## [Please help me with a glitch problem](https://forum.kustom.rocks/t/please-help-me-with-a-glitch-problem/13166)

<div class="topic-metadata">

**Author:** [@GODAMONGUS](https://forum.kustom.rocks/u/GODAMONGUS)\
**Replies:** 8\
**Last updated:** [March 20, 2026, 9:12am UTC](https://forum.kustom.rocks/t/please-help-me-with-a-glitch-problem/13166 "2026-03-20T09:12:27Z")

</div>

As subject say when ever i use themes like this i always get this glitch and have to re apply the themes this happend when i use games or any app in fullnscreen and try to went back on homescreen it start that glitch. P…

---

## [Path "Scale" function does not work correctly](https://forum.kustom.rocks/t/path-scale-function-does-not-work-correctly/13135)

<div class="topic-metadata">

**Author:** [@Cristie\_FlameWeiz](https://forum.kustom.rocks/u/Cristie_FlameWeiz)\
**Replies:** 5\
**Last updated:** [March 3, 2026, 5:44am UTC](https://forum.kustom.rocks/t/path-scale-function-does-not-work-correctly/13135 "2026-03-03T05:44:54Z")

</div>

Context: the render on “Fit center” mode does not work correctly. Please fix this. Device: Samsung Note 20 App version: 3.81b531008 When set the path scale function to “auto (100 x 100), it rendered this:: The Output…

---

## ["Path Shape" Isn't displaying on the homescreen](https://forum.kustom.rocks/t/path-shape-isnt-displaying-on-the-homescreen/13133)

<div class="topic-metadata">

**Author:** [@Sanjim\_Hasan](https://forum.kustom.rocks/u/Sanjim_Hasan)\
**Replies:** 3\
**Last updated:** [February 28, 2026, 8:02pm UTC](https://forum.kustom.rocks/t/path-shape-isnt-displaying-on-the-homescreen/13133 "2026-02-28T20:02:07Z")

</div>

Ok so I had made a shape/graph line using “Path commands”: M0 $gv(7/a)$ L25 $gv(7/b)$ M25 $gv(7/b)$ L50 $gv(7/c)$ M50 $gv(7/c)$ L75 $gv(7/d)$ M75 $gv(7/d)$ L100 $gv(7/e)$ ===== I had 5 “Text Globals”: $mu(floor, w…

---

## [Rndimg not showing images on KLWP](https://forum.kustom.rocks/t/rndimg-not-showing-images-on-klwp/13129)

<div class="topic-metadata">

**Author:** [@Conorc137](https://forum.kustom.rocks/u/Conorc137)\
**Replies:** 7\
**Last updated:** [February 28, 2026, 9:59am UTC](https://forum.kustom.rocks/t/rndimg-not-showing-images-on-klwp/13129 "2026-02-28T09:59:47Z")

</div>

I’m trying to use the random image function to make my wallpaper change every so often. The app is reading the folder correctly, but it’s not rendering the images. How can I fix that?

---

## [Issue with setting local variable in for loop (FL)](https://forum.kustom.rocks/t/issue-with-setting-local-variable-in-for-loop-fl/13097)

<div class="topic-metadata">

**Author:** [@I\_G](https://forum.kustom.rocks/u/I_G)\
**Replies:** 11\
**Last updated:** [February 9, 2026, 12:28pm UTC](https://forum.kustom.rocks/t/issue-with-setting-local-variable-in-for-loop-fl/13097 "2026-02-09T12:28:10Z")

</div>

In this trivial example the local variable should be x = 10 after the loop just like “i”, but it seems it is changed only once…

---

## [$tc(JSON, gv(GLOBAL), .path)$ = Error](https://forum.kustom.rocks/t/tc-json-gv-global-path-error/13094)

<div class="topic-metadata">

**Author:** [@Graru1](https://forum.kustom.rocks/u/Graru1)\
**Replies:** 5\
**Last updated:** [February 6, 2026, 3:02pm UTC](https://forum.kustom.rocks/t/tc-json-gv-global-path-error/13094 "2026-02-06T15:02:05Z")

</div>

Basic Info: klwp v3.82 3.82b602519beta android 16 oneui 8 When storing raw JSON format in the global and calling it with $tc(JSON)$… the output is getting wrong formatted… resulting in errors like \`tc: net.minidev.jso…

---

## [Add folder for Formula Providers](https://forum.kustom.rocks/t/add-folder-for-formula-providers/13087)

<div class="topic-metadata">

**Author:** [@vaibhavmalaviya1233](https://forum.kustom.rocks/u/vaibhavmalaviya1233)\
**Replies:** 0\
**Last updated:** [January 30, 2026, 6:20am UTC](https://forum.kustom.rocks/t/add-folder-for-formula-providers/13087 "2026-01-30T06:20:07Z")

</div>

I am making app similar to Kompanion and I have Implemented Formula content Provider but can we get new way to like have folder inside folder of formula provider to kind of categorize between like text, image, urls, etc……

---

## [Global Variable Access Limit Bug (Breaks After 4 Calls)](https://forum.kustom.rocks/t/global-variable-access-limit-bug-breaks-after-4-calls/12950)

<div class="topic-metadata">

**Author:** [@Graru1](https://forum.kustom.rocks/u/Graru1)\
**Replies:** 18\
**Last updated:** [January 21, 2026, 8:10am UTC](https://forum.kustom.rocks/t/global-variable-access-limit-bug-breaks-after-4-calls/12950 "2026-01-21T08:10:14Z")

</div>

Steps to reproduce the bug. 1. Create any number global and assign it a value. 2. Call it somewhere else more than 4 times! Note: calling it indirectly for example assigning it to a local variable does count too. Issu…

---

## [Question: Google Fit hydration data](https://forum.kustom.rocks/t/question-google-fit-hydration-data/13046)

<div class="topic-metadata">

**Author:** [@Jac](https://forum.kustom.rocks/u/Jac)\
**Replies:** 1\
**Last updated:** [January 10, 2026, 11:19am UTC](https://forum.kustom.rocks/t/question-google-fit-hydration-data/13046 "2026-01-10T11:19:35Z")

</div>

Hey there! Does any of you know on how to access the hydration data in google fit? It seems to me, there is no way yet, although I connected via google health. If it’s not available yet - is that on a roadmap somewhere? …

---

## [SOLVED Unread Counter and System Notification doesn't show the number of new Gmail messages](https://forum.kustom.rocks/t/solved-unread-counter-and-system-notification-doesnt-show-the-number-of-new-gmail-messages/11916)

<div class="topic-metadata">

**Author:** [@Baju\_Santiko](https://forum.kustom.rocks/u/Baju_Santiko)\
**Replies:** 1\
**Last updated:** [December 19, 2025, 12:06am UTC](https://forum.kustom.rocks/t/solved-unread-counter-and-system-notification-doesnt-show-the-number-of-new-gmail-messages/11916 "2025-12-19T00:06:06Z")

</div>

UPDATE Problem solved by selecting “No restriction” in my phone’s settings. :smiling\_face::+1: @frank : I just noticed recently, probably since a few updates of KLWP or KWGT, that both of the $uc(gmail, …)$ and the $n…

---

## [Nc(band) - Could the current band be extracted? E.g. n71, b38, etc](https://forum.kustom.rocks/t/nc-band-could-the-current-band-be-extracted-e-g-n71-b38-etc/12983)

<div class="topic-metadata">

**Author:** [@nobody](https://forum.kustom.rocks/u/nobody)\
**Replies:** 4\
**Last updated:** [December 13, 2025, 2:35am UTC](https://forum.kustom.rocks/t/nc-band-could-the-current-band-be-extracted-e-g-n71-b38-etc/12983 "2025-12-13T02:35:18Z")

</div>

I’m not sure if it’s possible to pull the band (frequency range) determined by the carrier that a device is using for cell/data. It would be interesting to see within my “real-time” network status section of a kgwt widg…

---

## [Maps Notification ETA info extraction](https://forum.kustom.rocks/t/maps-notification-eta-info-extraction/12985)

<div class="topic-metadata">

**Author:** [@GeoffT](https://forum.kustom.rocks/u/GeoffT)\
**Replies:** 0\
**Last updated:** [December 12, 2025, 1:38pm UTC](https://forum.kustom.rocks/t/maps-notification-eta-info-extraction/12985 "2025-12-12T13:38:02Z")

</div>

I’m relatively new to KWGT but am finding it incredibly useful and have managed to create several widgets for my home screen for my Android car headunit. I have run into an issue though with extracting data from the Goo…

---

## [A beginner problem about global variable](https://forum.kustom.rocks/t/a-beginner-problem-about-global-variable/12966)

<div class="topic-metadata">

**Author:** [@HRZOS](https://forum.kustom.rocks/u/HRZOS)\
**Replies:** 1\
**Last updated:** [November 29, 2025, 11:48pm UTC](https://forum.kustom.rocks/t/a-beginner-problem-about-global-variable/12966 "2025-11-29T23:48:17Z")

</div>

hey , this is me , im making this post because of im still beginner also i have a bit experience to programming and i use java, while programming i always make a variable, and set the value , but when i am trying to use…

---

## [Monocompass custom interface](https://forum.kustom.rocks/t/monocompass-custom-interface/12920)

<div class="topic-metadata">

**Author:** [@concise](https://forum.kustom.rocks/u/concise)\
**Replies:** 0\
**Last updated:** [November 18, 2025, 8:52pm UTC](https://forum.kustom.rocks/t/monocompass-custom-interface/12920 "2025-11-18T20:52:06Z")

</div>

---

## [\[KWGT\] Ist this a bug?](https://forum.kustom.rocks/t/kwgt-ist-this-a-bug/12590)

<div class="topic-metadata">

**Author:** [@reflektor\_793](https://forum.kustom.rocks/u/reflektor_793)\
**Replies:** 1\
**Last updated:** [November 13, 2025, 8:36am UTC](https://forum.kustom.rocks/t/kwgt-ist-this-a-bug/12590 "2025-11-13T08:36:58Z")

</div>

I’m having problems with KWGT again. Is this a bug? With a bit of luck, it works occasionally, but most of the time it doesn’t. I have to fix it manually. \> LAST SECOND visible in the .gif. Nothing was changed i…

---

## [Custom life management](https://forum.kustom.rocks/t/custom-life-management/12855)

<div class="topic-metadata">

**Author:** [@concise](https://forum.kustom.rocks/u/concise)\
**Replies:** 0\
**Last updated:** [November 8, 2025, 3:06am UTC](https://forum.kustom.rocks/t/custom-life-management/12855 "2025-11-08T03:06:04Z")

</div>

Hey everyone, work in progress. Also if anyone could explain how I can make the rings rotate that would be awesome. Thank you! I’m new so I’m only allowed one image so it’s an illustration

---

## [Extracting text color from album art](https://forum.kustom.rocks/t/extracting-text-color-from-album-art/12671)

<div class="topic-metadata">

**Author:** [@scottj0809](https://forum.kustom.rocks/u/scottj0809)\
**Replies:** 0\
**Last updated:** [October 24, 2025, 12:27pm UTC](https://forum.kustom.rocks/t/extracting-text-color-from-album-art/12671 "2025-10-24T12:27:41Z")

</div>

Hi, I’m trying to understand how bitmap palette works for pulling album title or body text color (e.g. $bp(dominanttc, mi(cover))$). It always shows up black or white for me, even if the the text in the album art is a di…

---

## [\[KWGT\] How do I create a loop when using a flow trigger?](https://forum.kustom.rocks/t/kwgt-how-do-i-create-a-loop-when-using-a-flow-trigger/12546)

<div class="topic-metadata">

**Author:** [@reflektor\_793](https://forum.kustom.rocks/u/reflektor_793)\
**Replies:** 3\
**Last updated:** [October 13, 2025, 4:03pm UTC](https://forum.kustom.rocks/t/kwgt-how-do-i-create-a-loop-when-using-a-flow-trigger/12546 "2025-10-13T16:03:49Z")

</div>

Hello! I’m having trouble using a Flow trigger. It doesn’t start automatically in the widget, but it does in KWGT. In this example, if it’s “0” again, \[if(Trigger - Formula: $gv(c-down)=0$, then Actions: 3, 2, 1, 0 = …

---

## [How do i make a clock that basically has limits?](https://forum.kustom.rocks/t/how-do-i-make-a-clock-that-basically-has-limits/12390)

<div class="topic-metadata">

**Author:** [@sebiikun](https://forum.kustom.rocks/u/sebiikun)\
**Replies:** 4\
**Last updated:** [October 8, 2025, 11:44am UTC](https://forum.kustom.rocks/t/how-do-i-make-a-clock-that-basically-has-limits/12390 "2025-10-08T11:44:44Z")

</div>

for hours, minutes and also seconds. how do i make it have a limit, and return to it’s normal state once reached the limit? Because animations are super in-accurate, and i need to work on it a bit quickly. if someo…

---

## [Shell command to execute scroll-speed refresh](https://forum.kustom.rocks/t/shell-command-to-execute-scroll-speed-refresh/12452)

<div class="topic-metadata">

**Author:** [@SirTamor](https://forum.kustom.rocks/u/SirTamor)\
**Replies:** 0\
**Last updated:** [October 5, 2025, 11:18am UTC](https://forum.kustom.rocks/t/shell-command-to-execute-scroll-speed-refresh/12452 "2025-10-05T11:18:31Z")

</div>

Hi there. I was trying to set up klwp and tasker for last 4 days so that tasker randomly chooses an image out of a folder and sends it to klwp togehter with the calculated scroll speed so the image allways fits complete…

---

## [Purchase problem kwg](https://forum.kustom.rocks/t/purchase-problem-kwg/12282)

<div class="topic-metadata">

**Author:** [@Oviemuno\_Emamuzo](https://forum.kustom.rocks/u/Oviemuno_Emamuzo)\
**Replies:** 1\
**Last updated:** [September 23, 2025, 8:03am UTC](https://forum.kustom.rocks/t/purchase-problem-kwg/12282 "2025-09-23T08:03:35Z")

</div>

Ok good now guys l have a problem with purchasing of kwg the best widget in town of Google Play store street. My smart phones (Samsung / Intel p55i ) need no more limited customisation Please I have bought the full vers…

---

## [Uri Encoding Implementation](https://forum.kustom.rocks/t/uri-encoding-implementation/12154)

<div class="topic-metadata">

**Author:** [@ottoz](https://forum.kustom.rocks/u/ottoz)\
**Replies:** 2\
**Last updated:** [September 11, 2025, 7:18pm UTC](https://forum.kustom.rocks/t/uri-encoding-implementation/12154 "2025-09-11T19:18:01Z")

</div>

Hello everyone, I need help answering a more in-depth technical question: What exactly is the implementation or standart for the $tc(url, )$ formula? Based on the fact that " " is encoded to “+” and the other percent e…

---

## [How to get volume value when controlling another device (Spotify Connect, Sonos, Cast)](https://forum.kustom.rocks/t/how-to-get-volume-value-when-controlling-another-device-spotify-connect-sonos-cast/11551)

<div class="topic-metadata">

**Author:** [@ssssaaaa](https://forum.kustom.rocks/u/ssssaaaa)\
**Replies:** 6\
**Last updated:** [September 1, 2025, 4:00am UTC](https://forum.kustom.rocks/t/how-to-get-volume-value-when-controlling-another-device-spotify-connect-sonos-cast/11551 "2025-09-01T04:00:23Z")

</div>

When I control the volume of my Sonos system and Cast devices I can do that and see the volume (labeled fx. Spotify or Sonos) with the volume rocker and volume menu slider on my phone. However KWGT only seem to have a v…

---

## [Spotify cover art blank if offline. Workaround?](https://forum.kustom.rocks/t/spotify-cover-art-blank-if-offline-workaround/9977)

<div class="topic-metadata">

**Author:** [@thathaleguy](https://forum.kustom.rocks/u/thathaleguy)\
**Replies:** 1\
**Last updated:** [August 25, 2025, 4:15am UTC](https://forum.kustom.rocks/t/spotify-cover-art-blank-if-offline-workaround/9977 "2025-08-25T04:15:45Z")

</div>

So I’m back to using Kustom after a while and I noticed that, for music widgets/elements where I show the album art, if the player is Spotify, mi(cover) is now supplying a URL (something https://i.scdn.co/…) for the cove…

[Next page](https://forum.kustom.rocks/tag/functions/9.md?match_all_tags=true&page=1&tags%5B%5D=functions)
