
The behaviour of the desklet still needs to be coded to have all the desired features, will be documented in a future post. Finally, the function main returns an instance of MyDesklet Next stepsīy this point there is a working desklet.
Windows 10 desklets code#
The method setupUI() contains the behaviour of the desklet, see comments in the code above.
Windows 10 desklets update#
Using MyDesklet.prototype allows us to add new methods to the object constructors. If you don’t see the widget in your taskbar, you’ll need to update to the latest version of Windows. The function MyDesklet is the constructor for our desklet, it takes metadata (dictionary) with the metadata of the desklet, and desklet_id (int) which is the instance id of the desklet. The Shell Toolkit is imported at imports.gi.St, it is a clutter-based toolkit that allows to add GUI elements to the desklet, St documentation can be found here. First, the Desklet class is imported from. St function MyDesklet ( metadata, desklet_id ) Ĭonstants are declared with const, and cannot be re-declared nor changed. Win10 Widgets launches your desktop into the future taking it from a collection of files and folders to a place where you can find all the information you need. Metadata.json: As it names indicates, this has the metadata for the desklet and additional options such as max-instances to allow multiple instances of the desklet.Ĭonst Desklet = imports. For example desklet requires at least two files: Then, create a directory with the name this is the UUID of the desklet. The files described in this section can be downloaded from here.įirst desklet, it prints "Hello Desktop" and can have multiple instancesįirst of all, the desklets are located at ~/.local/share/cinnamon/desklets, where each desklet has its own directory.
Windows 10 desklets windows#
Now, if you’re looking for a utility for Windows 10, this one comes highly recommended. It has also worked hard to enhance the user experience. For the time being, its features have been enhanced, giving it a sleeker and more accomplished appearance. When finished, it should look like the image below. The desklets serve as shortcuts for things like mail, calculator, and more.

Ok, with the previous information in mind, here a simple desklet is created and explained. I run Debian/Ubuntu/LinuxMint on Lenovo hardware (laptops) and Windows 10. More information about desklets can be find in the official repository. Included along with that popular desktop will be desklets, or desktop widgets. Moreover, desklets as well as other graphical elements in Cinnamon are written in JavaScript 3, and use the Cinnamon's JavaScript interpreter (CJS) 4. Browse the desklets in the gDesklet Shell window until you find the new desklet.

"Desklets are little programs which you can place on your desktop, on top of your desktop background" 2. A dialog will appear informing you that the package has been installed. At the moment of writing, Cinnamon 4.4.8 on Arch Linux was used. Because the information to develop a desklet is outdated 1, I decided to document the process, this is the first part of that process. A good day I was going through the available Desklets for Cinnamon, looking for an desklet to display graphs about the current state of the system (CPU, RAM, disks, etc.), although I found the nice desklets such as Simple monitor system, CPU Load and Disk Space, none of them quite do what I need.
