X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=mod_statusbar%2Fmod_statusbar.lua;h=81db1a4f435e58ed1eef335b8476ebadc74a062c;hb=ae4260bb64817c11f9a7140324cd3e3ba113e297;hp=3164927046c790397deacc3d6fb25437c282ff1f;hpb=803afbc1cd633f6c025bcd9537e9b7e9aedadd0d;p=ion3.git diff --git a/mod_statusbar/mod_statusbar.lua b/mod_statusbar/mod_statusbar.lua index 3164927..81db1a4 100644 --- a/mod_statusbar/mod_statusbar.lua +++ b/mod_statusbar/mod_statusbar.lua @@ -3,10 +3,7 @@ -- -- Copyright (c) Tuomo Valkonen 2004-2007. -- --- Ion is free software; you can redistribute it and/or modify it under --- the terms of the GNU Lesser General Public License as published by --- the Free Software Foundation; either version 2.1 of the License, or --- (at your option) any later version. +-- See the included file LICENSE for details. -- -- This is a slight abuse of the package.loaded variable perhaps, but @@ -238,7 +235,9 @@ end --DOC --- Load modules and launch ion-statusd with configuration table \var{cfg}. +-- Load modules and launch \file{ion-statusd} with configuration +-- table \var{cfg}. The options for each \file{ion-statusd} monitor +-- script should be contained in the corresponding sub-table of \var{cfg}. function mod_statusbar.launch_statusd(cfg) if statusd_pid>0 then return @@ -292,7 +291,23 @@ end -- Initialisation and default settings {{{ --DOC --- Create a statusbar. +-- Create a statusbar. The possible parameters in the +-- table \var{param} are: +-- +-- \begin{tabularx}{\linewidth}{llX} +-- Variable & Type & Description \\ +-- \var{template} & string & The template; see +-- Section \ref{sec:statusbar}. \\ +-- \var{pos} & string & Position: \code{"tl"}, \code{"tr"}, +-- \code{"bl"} or \code{"br"} +-- (for the obvious combinations of +-- top/left/bottom/right). \\ +-- \var{screen} & integer & Screen number to create the statusbar on. \\ +-- \var{fullsize} & boolean & If set, the statusbar will waste +-- space instead of adapting to layout. \\ +-- \var{systray} & boolaen & Swallow (KDE protocol) systray icons. \\ +-- \end{tabularx} +-- function mod_statusbar.create(param) local scr=ioncore.find_screen_id(param.screen or 0) if not scr then