Changes between Version 7 and Version 8 of Prefs2


Ignore:
Timestamp:
Sep 16, 2019, 12:03:34 PM (5 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Prefs2

    v7 v8  
    5050 * "time": time of day
    5151 * "on_batteries": whether system is running on batteries
    52  * "exclusive_app_running": whether an exclusive app is running
     52 * app_name: whether a given application is running
    5353 * "non_boinc_cpu_usage": fraction of CPU used for non-BOINC apps recently
    5454
     
    7171 * "nonzero": the value of the item is nonzero (i.e. Boolean true)
    7272 * "time range": the value of the item (usually "time") lies in a set of day/week intervals.
     73 * "app_running": an app of the given name is running
    7374
    74 A term can also have a "negate" flag, which if set reverses its sense.
     75A term can also have a "not" flag, which if set reverses its sense.
    7576
    7677The XML representation of a term:
     
    7879<term>
    7980   <item>item-name</item>
    80    <type>x</type>                  // 1 = greater than, 2 = nonzero, 3 = time range
    81    [<negate/>]
     81   <type>x</type>                  // 1 = greater than, 2 = nonzero, 3 = time range, 4 = app running
     82   [<not/>]
    8283   [<thresh>x</thresh>]            // if greater than
    8384   [<time_range>...</time_range>]  // if time range
     
    104105{{{
    105106<condition>
    106    [<negate/>]
     107   [<not/>]
    107108   <term> ... </term>
    108109   ...