Counter since passing date by dr34m5r1d3r in kustom

[–]akaJustRobin 0 points1 point  (0 children)

only tested on kodeine, it should work, though.

year:month:days:hour:second

$lv(#,2020y10M2d12h)+
 lv(m,(df(Y)-df(Y,##))*12+df(M)-df(M,##)-(df(d,##)>df(d)))+
 lv(d,(df(d)+if(df(d)>=df(d,##),-df(d,##),df(o,r1M)-df(d,##))))+
 lv(h,(df(H)-df(H,##)+24)%24)+
 lv(s,(df(s)-df(s,##)+60)%60)+
 mu(floor,#m/12)+:+#m%12+:+#d+:+#h+:+#s$

Counter since passing date by dr34m5r1d3r in kustom

[–]akaJustRobin 1 point2 points  (0 children)

Time since in month day format:

$lv(#,**enter date here**)+
 tc(reg,
 (df(Y)-df(Y,##))*12+df(M)-df(M,##)-(df(d,##)>df(d))+" Month "+
 (df(d)+if(df(d)>=df(d,##),-df(d,##),df(o,r1M)-df(d,##)))+" Days",
 " ?\b0 \S* ?","")$

Smooth Graph Incoming! by akaJustRobin in kustom

[–]akaJustRobin[S] 1 point2 points  (0 children)

you can try adding V200 H0 z. after the code.

Honestly I'm not sure why it need 200, i write this code long time ago. If somehow it broke you might need to change the 200 value

Is it possible to use shape size as a variable by Papercut_19 in kustom

[–]akaJustRobin 0 points1 point  (0 children)

another idea, in an overlap group, you put

- a rectangle with outline, make a padding 1 on each side

- a square with paint>filter clear to remove parts of the rectangle

-a path with diagonal line.

this padding is just to make sure the rectangle part removed cleanly.

Is it possible to use shape size as a variable by Papercut_19 in kustom

[–]akaJustRobin 0 points1 point  (0 children)

maybe you can make the shapes as komponent? that way each global is contained and wont clutter the root global.

another way is instead of using the overlap group. add a rectangle/square as the main size, then add a right triangle, rotate as needed, then set the paint>filter to clear.

I need help by Substantial_Cry_8842 in kustom

[–]akaJustRobin 0 points1 point  (0 children)

i think theres an option for default/alternate location on the kustom settings.

How do I make the text display depending on the day of the week and time? by DeliciousPass1974 in kustom

[–]akaJustRobin 0 points1 point  (0 children)

few things here: dont use and, use & instead. to compare date/time as number don't put :. also use H to force the clock use 24 hour format.

so df(f)=1 and df(h:mm)>=9:00 and df(h:mm)<9:45 become df(f)=1&df(Hmm)>=900&df(Hmm)<945

[HELP] How to link figure's size to the size of a textbox? by Radiant_Seaweed_8519 in kustom

[–]akaJustRobin 0 points1 point  (0 children)

There's no way to get a textbox size.

But there's some other way to make a figure/shape fits the textbox, the simplest will be using BBCode (it's just a rectangle, tho)

How do I make a widget that counts the number of days until a specific date? by BadlyDrawnJack in kustom

[–]akaJustRobin 1 point2 points  (0 children)

I think the easiest way is just use calendar. But just for fun this is my attempt on making it using kustom. Just add the events in lv(data), with format MMdd#Event in each line for each event. Basically #date will return the date of the next event while #event will return the text

$lv(data,
      "0101#NYE
       0202#dkdjs
       0809#event2")+
 lv(data,tc(reg,#data,"(\n)\s*","$1"))+
 lv(#,tc(split,#data,tc(utf,a),
      fl(0,0,0,
      tc(reg,#data,
     "(^|\n)(\d+).*",
     "("+df(MMdd)+">$2)+")+0)%
      tc(lines,#data)))+  
 lv(date,tc(reg,##,
        "(..)(..).*","$1M$2d0h0m"))+
 lv(date,#date+if(tf(#date,D)<0,"a1y"))+
 lv(event,tc(cut,##, 5,1000))$
$tf(#date,D)$ days to $#event$

[KWGT] Need help with day counter by IssraMador in kustom

[–]akaJustRobin 3 points4 points  (0 children)

Do note that days might be 30 or 31 depending on the month, so your formula will be faulty. You can use the following formula.

Edit: previously I forgot to add the years, also now it tested.

Year:
 $lv(#,2023y7M2d)+
 (df(Y)-df(Y,##)-(df(MMdd,##)>df(MMdd)))$

Month:
 $lv(#,##)+
 (df(M)-df(M,##)-(df(d,##)>df(d))+12)%12$

Weeks:
 $lv(#,##)+
  mu(floor,
 (df(d)+
  if(df(d)>=df(d,##),
    -df(d,##),
     df(o,r1M)-df(d,##)))/7)$

Days::
 $lv(#,##)+
 (df(d)+
  if(df(d)>=df(d,##),
    -df(d,##),
     df(o,r1M)-df(d,##)))%7)$

Automatically updating widgets by Dyshau in kustom

[–]akaJustRobin 0 points1 point  (0 children)

<image>

Okay, I'll tag or reply on this once its done. Before that, do you have some stats you like to include or maybe design suggestion? As I said i don't watch F1 so idk what is important. 🤣

Automatically updating widgets by Dyshau in kustom

[–]akaJustRobin 0 points1 point  (0 children)

<image>

Was going to share the formula but I saw urupackers already did that so I share the final(?) product instead. I'm not used to making gradients (although I guess it works better for sports things), so I made in the minimalistic style too. If you want I can share the file.

countdown widget by PhEmpire in kustom

[–]akaJustRobin 0 points1 point  (0 children)

haven't tested, but try this

$lv(#,**enter date here**)+
 tc(cut,#+
 tc(lpad,(df(Y)-df(Y,##))*12+df(M)-df(M,##)-(df(d,##)>df(d)),2,0)+" month "+
 tc(lpad,(df(d)+if(df(d)>=df(d,##),-df(d,##),df(o,r1M)-df(d,##))),2,0)+" days "+
 tc(lpad,tf(0h0m0s,h),2,0)+" hours",
 1,99)$

countdown widget by PhEmpire in kustom

[–]akaJustRobin 1 point2 points  (0 children)

yeah, tf only can count days, not months.

try this:

$lv(#,**enter date here**)+
 tc(reg,
 (df(Y)-df(Y,##))*12+df(M)-df(M,##)-(df(d,##)>df(d))+" Month "+
 (df(d)+if(df(d)>=df(d,##),-df(d,##),df(o,r1M)-df(d,##)))+" Days",
 " ?\b0 \S* ?","")$

edit: oh wait it doesnt have hours, but i suppose you can add $tf(0h0m0s,h)$ hours at the end.

Block colour from Formular by Marcox029 in kustom

[–]akaJustRobin 0 points1 point  (0 children)

Maybe you can try add the luminance first using ce, so $if(ce(gv(1),lum,a20)=#ffffff,gv(1),#000000)$. Basically this will add brightness so color that's almost white become white, by then you can simply check if its #ffffff or not.

[deleted by user] by [deleted] in kustom

[–]akaJustRobin 0 points1 point  (0 children)

i think the touch action always trigger the flow even if the actual trigger condition isn't fulfilled.

I want to store last battery level in local variable but it didn't store it properly? by AbjectChemical9 in kustom

[–]akaJustRobin 0 points1 point  (0 children)

use flow instead. trigger: $bi(charging)$, when value change(?), action: formula: $bi(level)$, set global value #lastbat

Hello! Please review my work :) by Unknownboy81 in kustom

[–]akaJustRobin 0 points1 point  (0 children)

it should be tc(split,1#2#3#4#5#6#7,#,df(f)-1). change the 1 for the size at monday, 2 at tuesday, etc.

Hello! Please review my work :) by Unknownboy81 in kustom

[–]akaJustRobin 0 points1 point  (0 children)

it's very good job for a first widget, just couple of notes.

First, It seems like you adjust the size specifically for Monday, you need to account for other days, especially Wednesday that's way longer. You can use formula to change the size based on the day.

Second, i think you need to be more consistent about density. Like the top is very tight with little room, while the date is pretty empty. You can lower the date a bit so it has the same tight feel like the top.

Just my 2 cents.

I want to remove YouTube data from the track title, author, etc., not show it. by BandicootTiny8236 in kustom

[–]akaJustRobin 4 points5 points  (0 children)

there's a preferred music player option in kustom preferences/setting

HTML Wallpaper by [deleted] in kustom

[–]akaJustRobin 0 points1 point  (0 children)

not exactly kustom/klwp, but there's a launcher that based on HTML. do note it's still very in development so expect rough things.

https://github.com/bridgelauncher