@@ -1147,6 +1147,7 @@ void addValueFromModuleMember(const std::string& moduleName, const std::string&
1147
1147
1148
1148
case " kernel_name" _fnv1a16: SYSINFO_INSERT (query_system.kernel_name ()); break ;
1149
1149
case " kernel_version" _fnv1a16: SYSINFO_INSERT (query_system.kernel_version ()); break ;
1150
+ case " packages" _fnv1a16:
1150
1151
case " pkgs" _fnv1a16: SYSINFO_INSERT (query_system.pkgs_installed (config)); break ;
1151
1152
case " initsys_name" _fnv1a16: SYSINFO_INSERT (query_system.os_initsys_name ()); break ;
1152
1153
case " initsys_version" _fnv1a16: SYSINFO_INSERT (query_system.os_initsys_version ()); break ;
@@ -1435,6 +1436,7 @@ void addValueFromModuleMember(const std::string& moduleName, const std::string&
1435
1436
SYSINFO_INSERT (str);
1436
1437
1437
1438
} break ;
1439
+
1438
1440
case " used" _fnv1a16:
1439
1441
SYSINFO_INSERT (fmt::format (" {:.2f} {}" , byte_units.at (USED).num_bytes , byte_units.at (USED).unit ));
1440
1442
break ;
@@ -1447,11 +1449,13 @@ void addValueFromModuleMember(const std::string& moduleName, const std::string&
1447
1449
SYSINFO_INSERT (fmt::format (" {:.2f} {}" , byte_units.at (FREE).num_bytes , byte_units.at (FREE).unit ));
1448
1450
break ;
1449
1451
1452
+ case " free_percentage" _fnv1a16:
1450
1453
case " free_perc" _fnv1a16:
1451
1454
SYSINFO_INSERT (get_and_color_percentage (query_disk.free_amount (), query_disk.total_amount (),
1452
1455
parse_args, true ));
1453
1456
break ;
1454
1457
1458
+ case " used_percentage" _fnv1a16:
1455
1459
case " used_perc" _fnv1a16:
1456
1460
SYSINFO_INSERT (
1457
1461
get_and_color_percentage (query_disk.used_amount (), query_disk.total_amount (), parse_args));
@@ -1503,11 +1507,13 @@ void addValueFromModuleMember(const std::string& moduleName, const std::string&
1503
1507
SYSINFO_INSERT (fmt::format (" {:.2f} {}" , byte_units.at (USED).num_bytes , byte_units.at (USED).unit ));
1504
1508
break ;
1505
1509
1510
+ case " free_percentage" _fnv1a16:
1506
1511
case " free_perc" _fnv1a16:
1507
1512
SYSINFO_INSERT (get_and_color_percentage (query_ram.swap_free_amount (), query_ram.swap_total_amount (),
1508
1513
parse_args, true ));
1509
1514
break ;
1510
1515
1516
+ case " used_percentage" _fnv1a16:
1511
1517
case " used_perc" _fnv1a16:
1512
1518
SYSINFO_INSERT (get_and_color_percentage (query_ram.swap_used_amount (), query_ram.swap_total_amount (),
1513
1519
parse_args));
@@ -1559,11 +1565,13 @@ void addValueFromModuleMember(const std::string& moduleName, const std::string&
1559
1565
SYSINFO_INSERT (fmt::format (" {:.2f} {}" , byte_units.at (FREE).num_bytes , byte_units.at (FREE).unit ));
1560
1566
break ;
1561
1567
1568
+ case " free_percentage" _fnv1a16:
1562
1569
case " free_perc" _fnv1a16:
1563
1570
SYSINFO_INSERT (
1564
1571
get_and_color_percentage (query_ram.free_amount (), query_ram.total_amount (), parse_args, true ));
1565
1572
break ;
1566
1573
1574
+ case " used_percentage" _fnv1a16:
1567
1575
case " used_perc" _fnv1a16:
1568
1576
SYSINFO_INSERT (
1569
1577
get_and_color_percentage (query_ram.used_amount (), query_ram.total_amount (), parse_args));
@@ -1591,6 +1599,7 @@ void addValueFromModuleMember(const std::string& moduleName, const std::string&
1591
1599
{
1592
1600
switch (moduleMember_hash)
1593
1601
{
1602
+ case " percentage" _fnv1a16:
1594
1603
case " perc" _fnv1a16:
1595
1604
SYSINFO_INSERT (get_and_color_percentage (query_battery.perc (), 100 , parse_args, true ));
1596
1605
break ;
@@ -1658,7 +1667,7 @@ void addValueFromModule(const std::string& moduleName, parse_args_t& parse_args)
1658
1667
}
1659
1668
}
1660
1669
1661
- else if (moduleName == " title_sep" )
1670
+ else if (moduleName == " title_sep" || moduleName == " title_separator " )
1662
1671
{
1663
1672
if (sysInfo.find (moduleName) == sysInfo.end ())
1664
1673
sysInfo.insert ({ moduleName, {} });
0 commit comments