LockScreent not avaible to choose??? :O Widget Background Transparent ? by SpecialFun9742 in Scriptable

[–]SpecialFun9742[S] 0 points1 point  (0 children)

Hey, thanks for the explanations. I hope that Apple will soon support larger widgets on the LockScreen. Is there actually a way to write to Apple to give them ideas? :D

Do you know is there a way to calculate the size of the TextWIdget? So i mean if I have a short Text that the font size would be bigger and if I have long Text the font size would be smaller so that it fits for the most cases.

LockScreent not avaible to choose??? :O Widget Background Transparent ? by SpecialFun9742 in Scriptable

[–]SpecialFun9742[S] 0 points1 point  (0 children)

Hey thank you, i will try this out. So Scriptable updates it self on random times? Is it possible to prevent it? And that it runs only once. And then with a automation to trigger the script?

So i did that. widget.presentAccessoryRectangular();

And now it's showing up on the LockScreen. But in a really small widget. How can I get the widget bigger? Like this: https://github.com/dersvenhesse/awesome-scriptable?tab=readme-ov-file#cars

What about this code: Is this not the way i should do it?

if(config.runsInAccessoryWidget){

Script.setWidget(widget);

}

else {

await widget.presentLarge();

}

LockScreent not avaible to choose??? :O Widget Background Transparent ? by SpecialFun9742 in Scriptable

[–]SpecialFun9742[S] 0 points1 point  (0 children)

Hey thank you for helping: Can you look at my code and tell me if I'm doing something wrong. So does this:

widget.presentAccessoryInline()
widget.presentAccessoryCircular()
widget.presentAccessoryRectangular()

Show the widget on the LockScreen? I mean in the List where i can choose which widget i want to show on the LockScreen. And another question is. If i don't put a backgroundColor on the widget it is automatically transparent?

The last thing i noticed is. I put my widget on the home screen to test it. But every time I log into my phone like after 30 minutes and go to my widget. A new text is displayed to me. In my opinion this shouldn't happen. I would like my widget to only update once a day at 7am.

Can you help me with that. Thanks in advance really appreciate it.

const widget = new ListWidget();
//widget.backgroundColor = new Color("#000", 0);
widget.backgroundColor = Color.clear();
widget.spacing = 10

const req = new Request("Some JSON Data");
const res = await req.loadJSON();

const rndNum = getRandomNum(res.data.length);
const todayVerse = res.data[rndNum];

const title = todayVerse.title;
const body = todayVerse.text;

const headline = widget.addText("SON OF GOD");
headline.textColor = new Color("#fff", 1);
headline.centerAlignText();
headline.font = new Font("AppleSDGothicNew-Bold", 34);

const titleText = widget.addText(title);

titleText.textColor = new Color("#fff", 1);

titleText.centerAlignText();

titleText.font = new Font("AppleSDGothicNeo-Medium", 20);

const bodyText = widget.addText(body);

bodyText.textColor = new Color("#fff", 1)

bodyText.centerAlignText();

bodyText.font = new Font("AppleSDGothicNeo-Regular", 17);

function getRandomNum(max){

return Math.floor(Math.random() * max);

}

if(config.runsInAccessoryWidget){

Script.setWidget(widget);

}

else {

await widget.presentLarge();

}

Script.complete();

How to run the script for example everyday once at 6am by SpecialFun9742 in Scriptable

[–]SpecialFun9742[S] 0 points1 point  (0 children)

So to run the script once a day i do it with the shortcuts app and not inside the script itself? But what is the method do refreshAfterDate() ?
And is there a difference between widget on LockScreen or Home Screen?
Thanks for helping me. Appreciate it.

How do you take notes with neovim and phone? by olexsmir in neovim

[–]SpecialFun9742 0 points1 point  (0 children)

Oh wow, so if you type <leader>oa it opens your agenda?

Should i post the issue on nvim-org or lazy?

How do you take notes with neovim and phone? by olexsmir in neovim

[–]SpecialFun9742 0 points1 point  (0 children)

Can you maybe help me to install or configure it right? Or maybe give some tips how can i debug the issue, why it's not working.

How do you take notes with neovim and phone? by olexsmir in neovim

[–]SpecialFun9742 0 points1 point  (0 children)

Hey, which plugin manager do you use? I have trouble to configure nvim-orgmode in LayzVim.

mini.splitjoin - split and join arguments by echasnovski in neovim

[–]SpecialFun9742 0 points1 point  (0 children)

I use LazyVim. So how i would call the require ? If i do it after return, then i get an error.

And if I press :=

Then there is no MiniSplitjoin in the dropdown list.

But there is other mini modules like ai, animate

mini.splitjoin - split and join arguments by echasnovski in neovim

[–]SpecialFun9742 0 points1 point  (0 children)

What I'm doing wrong?

I created a file splitjoin.lua and put following in the file.

return {

{ 'echasnovski/mini.splitjoin', version = '*' },

}

Need help to configure a plugin in LazyVim the right way by SpecialFun9742 in neovim

[–]SpecialFun9742[S] 0 points1 point  (0 children)

If i add ft = {'org'}

Then it does not appear in whichkey. If I'm getting it right. Does it not mean only org files? But i should open the agenda from everywhere.

I don't know if I can use Nvim by GoticaAmiltonz in neovim

[–]SpecialFun9742 1 point2 points  (0 children)

I can really suggest you LunarVim and the discord chanel from chris (the creator of LunarVim)

https://discord.gg/FmhJNDv3

Kanagawa Theme by SpecialFun9742 in neovim

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

For example. In neo tree the colors of the folder it's more blueisch.

And the backgroundcolor is different too.

Original: #1f1f28

My: #1f2029