Simple Shortcut Widget
Create a new widget from template
Select the menuitem "Create Widget..." from RainWidget's tray menu, it will auto create a new blank widget from template and open the widget's folder ,then you can see all the files of the new widget is "index.html" , "widget.json", we can modify them to build our own widgets.
Modify Widget Information
You can modify the widget folder name "NewWidget" to any other you want,for excample "MyShortcut".
Open the widget file "widget.json" with Notepad or Notepad++ , then you can see all the widget information and you can modify the name,author,widget size width/height to any other you want.
Add Shortcut Measure
Found the "measures" json node in file "widget.json"
Add a shortcut measure node code with this code and save and close this file:
Modify Widget UI
Open the widget file "index.html" with Notepad or Notepad++
Modify the text between <div id="widget"> and </div> to " {{ shortcut1.title }} ",then the code is: the "title" is one of the shortcut data tags, you can find all the data tags from here
save and close this file
Add this widget to your desktop or reload it (right click RainWidget's tray and select menuitem "reload"), then you can see the widget display the shortcut title "Notepad" on your desktop, click it will open the notepad.exe.
Using Widget
Add this widget to your desktop
right click the widget and select menuitem "Settings" to open the widget setting window
Switch to the "Shortut" tab page of setting window, config the shortcut title,path etc...
Click "Apply" or "OK" button to save settings, the widget will auto update.
Last updated