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

    • Weird, I was told on the last article that the Robotaxi was no far ahead of what Waymo has now. Seriously, what's the point of this if there is still a human driver? They get paid even less than a taxi driver? Do we still have to tip them?
    • Not $299 as it runs the same hardware SOC as the S25+ and ulltra and such but yes it should be cheaper like Maby $500
    • Apple releases massive slide deck to help children convince their parents to buy them a Mac by Usama Jawad The competition between Windows PCs, Apple Macs, and Chromebooks is fairly decent when it comes to the education sector. Chromebooks are typically priced very competitively but are sometimes underpowered. Windows offers wide compatibility with software but may increase overall licensing costs, and finally, Mac offers similar benefits to Windows coupled with premium hardware, but is the most expensive of the lot. That said, these are mostly generalizations and your mileage may vary according to your use-case. However, Apple is now ready to help children convince parents that a Mac is the best device for their educational needs. Over on its website, Apple has published "The Parent Presentation", which is an 81-page slide deck aimed at children in order to facilitate them in convincing their parents that they should buy their children a Mac. The slide deck is available in multiple formats including PowerPoint, Google Slides, and Keynote. Needless to say, the slide deck does serve a business purpose but it's also fairly humorous in tone. For example, slide 7 speaks from the point of view of the presenter (the child), saying that they'd love to take their parents to college with them but since that's not possible, they would like to take a Mac to college instead. Then, slide 11 talks about refers to "thoroughly researched evidence" that proves that a Mac is the superior option because it is durable, reliable, and "compatible with my major". You get the gist. That's not all though. Apple has released an accompanying YouTube video on the same topic by comedian Martin Herlihy, you can check it out below: Of course, it's quite unlikely that any child will actually use this slide deck to convince their parents. But it's all in good fun and makes for an interesting marketing gimmick. If you don't want to bother downloading the massive slide deck yourself, you can view it online in Google Slides too.
    • well if we go back in time to 2013 the LG G2 phone that i owned was the best on the market at the time 5.2" LCD 1080p display it had 4gb of Ram ( might have been 3GB ) android KitKat out of the box but was upgradable to Android 6.0 it had the best Built in Audio Dac 24bit/192khz playback Hi-Fi audio and a snapdragon 800 2.2ghz Quad core and 32gb of storage and the Camera was top notch at the time . but beyond that what help make it really good was a3,000mAh that allowed 20hrs of video playback and 26.7hrs of talk time and the Phone was only 5.45" (H) x 2.79" (W) x 0.35" (D) now compared to the galaxy S25 edge that is 158.2 x 75.6 x 5.8 so we have come along way since the LG G2 ( Miss that Phone) but i think the edge while yes smaller battery and camera is less still has its place and people who will buy it
  • Recent Achievements

    • Week One Done
      BlakeBringer earned a badge
      Week One Done
    • Week One Done
      Helen Shafer earned a badge
      Week One Done
    • First Post
      emptyother earned a badge
      First Post
    • Week One Done
      Crunchy6 earned a badge
      Week One Done
    • One Month Later
      KynanSEIT earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      671
    2. 2
      ATLien_0
      274
    3. 3
      Michael Scrip
      234
    4. 4
      Steven P.
      165
    5. 5
      +FloatingFatMan
      158
  • Tell a friend

    Love Neowin? Tell a friend!