Pwidgets. Official download for latest Pwidgets.
Pwidgets- plugins and widget storage. Useful plugins, extra widgets.
wiki. Useful information and "Official" widget list included in latest version and list of recent plugins and other activity.
TV Channels Channels for Tv widget
Pwidgets Eyecandy Clockskins and sidebars, other Pwidget graphical stuff
Pwidgets now has a `Plugins´ tab that makes it easy to change your settings.
Covered are
- Themes
Sidebar
Cluster
Calendar
Clock_analog
Downspeed
Horoscope
Pet
RssFeed
Slideshow
Tv
Weather
WorldTime
Have fun.Creating a widget
A simple widget
Take a look at /root/.pwidgets/configs/ScrollText. Change the text at bottom of the file. Save new file with another name (keep it in /root/.pwidgets/configs/). Restart Pwidgets, and your new widget is available.
A more complex widget
1.) ENGINE
Pwidgets supports 4 widget engines, but 3 of them are hardcoded for a unique widget. Conky is what we have used to build most of our widgets.
- conky (base engine)
- xli (Slideshow)
- xwinwrap (Tv)
- xonclock (Analog-clock)
2.) CONFIG
A widget MUST have a config file in /root/.pwidgets/configs/ (See examples). Normally this is a ordinary conky config file. The config filename will be the widgets name. Content of this directory shows up in 'Available widgets' list in the main gui.
3.) SCRIPTS
If external code needs to be run to fetch new info for the widget, call up the widgets script in /root/.pwidgets/scripts/. The script should have the same name as the config file. It is also possible to run a specified script before reading config file. 'Downspeed' is an example of this. The script file has the same name as the config file with a -pre ending (Downspeed-pre), and is placed in /root/.pwidgets/scripts/.
4.) THEME
Your new widget will follow the global theme settings. If you want to override this you can hardcode colors in config files. Though, the best solution is to make a unique theme for your widget. Themes are placed in /root/.pwidgets/themes/THEME/main. The main file works for all widgets. If a unique theme is specified, this one overrides the main theme. The unique theme should have the same name as the config file (widget name).
5.) PLUGIN
If the new widget requires user configuration to works properly, a plugin may do the job. A plugin is a small gui that edits the widget config file. Plugins are stored in /root/.pwidgets/plugins/, and has the same name as the config file. It will show up automatically when user adds your widget from 'Available widgets' to 'Widget list'. After user input, let the plugin execute:
. /usr/local/pwidgets/locals/english
. /usr/local/pwidgets/func -apply
fixwidgets
This builds the chosen widget tree including the changed info from this plugin.