Recommended Posts

  On 05/07/2023 at 01:17, xfx said:

There are hundreds of GUI libraries and frameworks for JS apps.
This is one of them: https://docs.nodegui.org/

Expand  

I am coming at it from a different angle: that being a desktop widget framework that will allow me to use JS as a language for scripting.

I believe I’ve found a solution; xWidgets

  • Like 2
  On 04/07/2023 at 21:01, Dick Montage said:

I've written a "vague clock" (it's nearly quarter to ten in the evening)

Expand  

I know this isn't the point of the discussion, but can I ask...

Br00TCn.gif

I love applying Marvin the Android personalities to things ("Not that anyone cares, but it's nearly quarter to ten in the evening" and so on) but surely you either want to know the time or you don't? :laugh: Or is it like I'm guessing, and just a novelty or part of an exercise?

I might take a look at XWidget...there have been a couple of topics about widgets recently that have made me think that while I like a desktop with no icons, I could maybe add some more functionality to it. Thanks for the tip!

  On 05/07/2023 at 07:56, Nick H. said:

I know this isn't the point of the discussion, but can I ask...

Br00TCn.gif

I love applying Marvin the Android personalities to things ("Not that anyone cares, but it's nearly quarter to ten in the evening" and so on) but surely you either want to know the time or you don't? :laugh: Or is it like I'm guessing, and just a novelty or part of an exercise?

I might take a look at XWidget...there have been a couple of topics about widgets recently that have made me think that while I like a desktop with no icons, I could maybe add some more functionality to it. Thanks for the tip!  

Expand  

You know... it was one of those "This is an interesting little project" things.  I don't care for the exact time (when using this PC) more just "Oh, wow, it's bedtime" sorta thing.  Also, I adore "natural speaking" things - conversant interfaces.

And then it evolved, and I'm giving it a nice little tickle every now and then to improve the code.

  On 05/07/2023 at 23:21, xfx said:

Maybe you could share the repo if you decide to make it open-source?

Expand  

I'd gladly share it, but JavaScript is a language I only use for stupid fun stuff - not used it in a commercial environment in years - am sure there are better examples out there.  But like I say, sure - will upload at some point :)

 

  • Like 1
  • 2 weeks later...
  • 5 months later...
  On 06/07/2023 at 14:59, adrynalyne said:

You are evil.  Pure evil.

Expand  

Electron is great if you know what you're doing and don't need to rely on the node.js/modules part of it. I use it as a very basic shell for my hosted web apps so I can have a clean ui and seamless printing and other simple os integrations that are all built in electron function. It's still always over 100mb though lol, I should probably take a look at WebView2, however I need it to work on Mac and Linux.

  • 1 year later...
  On 04/07/2023 at 21:01, Dick Montage said:

Hi

I've written a "vague clock" (it's nearly quarter to ten in the evening) in JavaScript, and was wondering if there were some way to present this as a desktop widget?

Open to ideas.

 

Thanks

Expand  

You have a few options to turn your "vague clock" into a desktop widget:

Electron.js – Package your JavaScript into a cross-platform desktop app.

Rainmeter (Windows) – Convert your script into a Rainmeter skin using Lua.

Plasmoid (Linux KDE) – Create a KDE Plasma widget using QML + JavaScript.

MacOS SwiftBar – Use a simple script in SwiftBar to display it in the menu bar.

HTA (Windows) – Use an HTML Application (.hta) to run it as a lightweight window.

  • 2 months later...

lectron (Windows/Mac/Linux) – Best option. Wraps your HTML/JS as a native app.

Windows Gadgets – Deprecated, only for older Windows.

macOS (WebView/Scriptable) – Use Swift or Scriptable to run JS widgets.

Rainmeter (Windows) – Supports widgets, can use JS with plugins.

PWA (Progressive Web App) – Installable web app, feels like a desktop app.

Browser Extension – Show it in new tabs or as a sidebar widget.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Hmm, I'll give it a go
    • Is Samsung teasing a Galaxy Z Fold7 Ultra? An official press release suggests so by Sagar Naresh Bhavsar We are inching closer to the launch of this year's premium foldables from Samsung: the Galaxy Z Fold7 and the Galaxy Z Flip7. Recently, a certification revealed that the affordable Galaxy Z Flip7 FE, could also debut alongside the other two foldables. The device is expected to take on the standard Moto Razr 2025. While we were getting excited about the trio, Samsung has put out a press release to create some hype around the upcoming foldables. Interestingly, the company has put great emphasis on the "Ultra" branding, which it usually uses for its Galaxy S-series phone and previously for Note-series phones. So, does this mean, we are getting a Galaxy Z Fold7 Ultra? Time will only tell. As for the press release, it is titled "Meet the Next Chapter of Ultra" and the first line highlights how Samsung has been listening to fans that have demanded "bigger screens, better cameras and new ways to connect and create." To churn up up the hype, Samsung added, "That’s why Galaxy’s next chapter is to provide an experience that seamlessly blends artistry and engineering to elevate everyday interactions." The GIF inside the press-release reveals what looks like the Galaxy Z Fold7 (or the Galaxy Z Fold7 Ultra, if that exists). Rumors have indicated that this year's Galaxy Z Fold7 is getting taller and wider than last year's model, thanks to a bigger display. The Z Fold7 could also feature a titanium backplate to not only reduce its thickness and make it stronger but to shed some weight as well. The company then directs the attention to its AI features such as voice controls for finding the perfect eatery or shopping place, using powerful AI-powered camera features, and so on. We will get to know more about the devices in the coming weeks. By that time, let us know your thoughts, on whether you would like an Ultra foldable or want Samsung to tweak the existing model and keep the space less-crowded.
    • A couple of friends of mine have been building Gunpla for years and got me interested, so I asked and they recommended this as a fairly good quality, very affordable, starting point. https://www.amazon.co.uk/dp/B0BGN9K1MV It was fun to build, didn't take too long, and helped me decide if I wanted to go further with the hobby, which I did.  Still only got this one built, but that's only due to time availability!
    • I've had an original, a Lite, and an OLED and I have just one question for you.  How big are your hands? I got rid of all three because, simply put, they're sized for kids hands more than anything, especially the Lite.  The Switch 2 is a fair bit larger but I'm not agreeing to Ninty's new EULA for the thing.
    • Where does he say that he'll give 99% to Africa? I agree that he said that he'll give 99% of his wealth, and you quote him saying that the majority will go to Africa. The majority of 99% does not mean all of the 99%. It could mean that he'll give just above half of that.
  • Recent Achievements

    • Week One Done
      Leonard grant earned a badge
      Week One Done
    • One Month Later
      portacnb1 earned a badge
      One Month Later
    • Week One Done
      portacnb1 earned a badge
      Week One Done
    • First Post
      m10d earned a badge
      First Post
    • Conversation Starter
      DarkShrunken earned a badge
      Conversation Starter
  • Popular Contributors

    1. 1
      +primortal
      260
    2. 2
      snowy owl
      158
    3. 3
      +FloatingFatMan
      145
    4. 4
      ATLien_0
      140
    5. 5
      Xenon
      131
  • Tell a friend

    Love Neowin? Tell a friend!