mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-25 07:57:19 +00:00
bump default gi configuration
Bump API version and add new parameters. Also: 1. Fix function combobox in configuration UI. 2. Drop datasource from time engine as well. 3. Small edit abstractdesources class
This commit is contained in:
parent
89d573450a
commit
071d7fdb78
@ -262,8 +262,8 @@ Item {
|
|||||||
if (debug) console.debug()
|
if (debug) console.debug()
|
||||||
if (model[currentIndex]["regexp"] == "functions")
|
if (model[currentIndex]["regexp"] == "functions")
|
||||||
tags.model = ["{{\n\n}}", "template{{\n\n}}",
|
tags.model = ["{{\n\n}}", "template{{\n\n}}",
|
||||||
"aw_all<>()", "aw_count<>()", "aw_keys<>()",
|
"aw_all<>{{}}", "aw_count<>{{}}", "aw_keys<>{{}}",
|
||||||
"aw_names<>()"]
|
"aw_names<>{{}}"]
|
||||||
else
|
else
|
||||||
tags.model = awKeys.dictKeys(true, model[currentIndex]["regexp"])
|
tags.model = awKeys.dictKeys(true, model[currentIndex]["regexp"])
|
||||||
if (debug) console.info("Init model", tags.model, "for", model[currentIndex]["label"])
|
if (debug) console.info("Init model", tags.model, "for", model[currentIndex]["label"])
|
||||||
|
@ -86,6 +86,7 @@ void AWDataEngineAggregator::dropSource(const QString source)
|
|||||||
// connected we will try to disconnect it from systemmonitor and extsysmon
|
// connected we will try to disconnect it from systemmonitor and extsysmon
|
||||||
m_dataEngines[QString("systemmonitor")]->disconnectSource(source, parent());
|
m_dataEngines[QString("systemmonitor")]->disconnectSource(source, parent());
|
||||||
m_dataEngines[QString("extsysmon")]->disconnectSource(source, parent());
|
m_dataEngines[QString("extsysmon")]->disconnectSource(source, parent());
|
||||||
|
m_dataEngines[QString("time")]->disconnectSource(source, parent());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,11 +3,14 @@ Encoding=UTF-8
|
|||||||
Name=bar3
|
Name=bar3
|
||||||
Comment=Simple bat bar
|
Comment=Simple bat bar
|
||||||
X-AW-Value=bat
|
X-AW-Value=bat
|
||||||
|
X-AW-Custom=false
|
||||||
|
X-AW-Max=100.0
|
||||||
|
X-AW-Min=0.0
|
||||||
X-AW-ActiveColor="0,0,0,255"
|
X-AW-ActiveColor="0,0,0,255"
|
||||||
X-AW-InactiveColor="255,255,255,255"
|
X-AW-InactiveColor="255,255,255,255"
|
||||||
X-AW-Type=Horizontal
|
X-AW-Type=Horizontal
|
||||||
X-AW-Direction=LeftToRight
|
X-AW-Direction=LeftToRight
|
||||||
X-AW-Height=25
|
X-AW-Height=25
|
||||||
X-AW-Width=100
|
X-AW-Width=100
|
||||||
X-AW-ApiVersion=3
|
X-AW-ApiVersion=4
|
||||||
X-AW-Number=3
|
X-AW-Number=3
|
||||||
|
@ -3,11 +3,14 @@ Encoding=UTF-8
|
|||||||
Name=bar0
|
Name=bar0
|
||||||
Comment=Simple cpu bar
|
Comment=Simple cpu bar
|
||||||
X-AW-Value=cpu
|
X-AW-Value=cpu
|
||||||
|
X-AW-Custom=false
|
||||||
|
X-AW-Max=100.0
|
||||||
|
X-AW-Min=0.0
|
||||||
X-AW-ActiveColor="0,0,0,255"
|
X-AW-ActiveColor="0,0,0,255"
|
||||||
X-AW-InactiveColor="255,255,255,255"
|
X-AW-InactiveColor="255,255,255,255"
|
||||||
X-AW-Type=Horizontal
|
X-AW-Type=Horizontal
|
||||||
X-AW-Direction=LeftToRight
|
X-AW-Direction=LeftToRight
|
||||||
X-AW-Height=25
|
X-AW-Height=25
|
||||||
X-AW-Width=100
|
X-AW-Width=100
|
||||||
X-AW-ApiVersion=3
|
X-AW-ApiVersion=4
|
||||||
X-AW-Number=0
|
X-AW-Number=0
|
||||||
|
@ -3,11 +3,14 @@ Encoding=UTF-8
|
|||||||
Name=bar1
|
Name=bar1
|
||||||
Comment=Simple mem bar
|
Comment=Simple mem bar
|
||||||
X-AW-Value=mem
|
X-AW-Value=mem
|
||||||
|
X-AW-Custom=false
|
||||||
|
X-AW-Max=100.0
|
||||||
|
X-AW-Min=0.0
|
||||||
X-AW-ActiveColor="0,0,0,255"
|
X-AW-ActiveColor="0,0,0,255"
|
||||||
X-AW-InactiveColor="255,255,255,255"
|
X-AW-InactiveColor="255,255,255,255"
|
||||||
X-AW-Type=Horizontal
|
X-AW-Type=Horizontal
|
||||||
X-AW-Direction=LeftToRight
|
X-AW-Direction=LeftToRight
|
||||||
X-AW-Height=25
|
X-AW-Height=25
|
||||||
X-AW-Width=100
|
X-AW-Width=100
|
||||||
X-AW-ApiVersion=3
|
X-AW-ApiVersion=4
|
||||||
X-AW-Number=1
|
X-AW-Number=1
|
||||||
|
@ -3,11 +3,14 @@ Encoding=UTF-8
|
|||||||
Name=bar2
|
Name=bar2
|
||||||
Comment=Simple swap bar
|
Comment=Simple swap bar
|
||||||
X-AW-Value=swap
|
X-AW-Value=swap
|
||||||
|
X-AW-Custom=false
|
||||||
|
X-AW-Max=100.0
|
||||||
|
X-AW-Min=0.0
|
||||||
X-AW-ActiveColor="0,0,0,255"
|
X-AW-ActiveColor="0,0,0,255"
|
||||||
X-AW-InactiveColor="255,255,255,255"
|
X-AW-InactiveColor="255,255,255,255"
|
||||||
X-AW-Type=Horizontal
|
X-AW-Type=Horizontal
|
||||||
X-AW-Direction=LeftToRight
|
X-AW-Direction=LeftToRight
|
||||||
X-AW-Height=25
|
X-AW-Height=25
|
||||||
X-AW-Width=100
|
X-AW-Width=100
|
||||||
X-AW-ApiVersion=3
|
X-AW-ApiVersion=4
|
||||||
X-AW-Number=2
|
X-AW-Number=2
|
||||||
|
@ -57,12 +57,14 @@ QVariant ExtSysMonAggregator::data(const QString source) const
|
|||||||
{
|
{
|
||||||
qCDebug(LOG_ESM) << "Source" << source;
|
qCDebug(LOG_ESM) << "Source" << source;
|
||||||
|
|
||||||
return hasSource(source) ? m_map[source]->data(source) : QVariant();
|
return m_map[source]->data(source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool ExtSysMonAggregator::hasSource(const QString source) const
|
bool ExtSysMonAggregator::hasSource(const QString source) const
|
||||||
{
|
{
|
||||||
|
qCDebug(LOG_ESM) << "Source" << source;
|
||||||
|
|
||||||
return m_map.contains(source);
|
return m_map.contains(source);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,9 +80,7 @@ QVariantMap ExtSysMonAggregator::initialData(const QString source) const
|
|||||||
|
|
||||||
QStringList ExtSysMonAggregator::sources() const
|
QStringList ExtSysMonAggregator::sources() const
|
||||||
{
|
{
|
||||||
QStringList sorted = m_map.keys();
|
return m_map.keys();
|
||||||
sorted.sort();
|
|
||||||
return sorted;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ void BatterySource::run()
|
|||||||
= (QString(acFile.readLine()).trimmed().toInt() == 1);
|
= (QString(acFile.readLine()).trimmed().toInt() == 1);
|
||||||
acFile.close();
|
acFile.close();
|
||||||
|
|
||||||
// batterites
|
// batteries
|
||||||
float currentLevel = 0.0;
|
float currentLevel = 0.0;
|
||||||
float fullLevel = 0.0;
|
float fullLevel = 0.0;
|
||||||
for (int i = 0; i < m_batteriesCount; i++) {
|
for (int i = 0; i < m_batteriesCount; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user