File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 10371037 "date" : " Date" ,
10381038 "input-volume" : " Input Volume" ,
10391039 "output-volume" : " Output Volume" ,
1040+ "network-rx" : " Network RX" ,
1041+ "network-tx" : " Network TX" ,
10401042 "ram" : " RAM" ,
10411043 "temp" : " Temperature"
10421044 },
Original file line number Diff line number Diff line change @@ -870,6 +870,16 @@ void ConfigService::seedBuiltinWidgets(Config& config) {
870870 ram.settings [" stat" ] = std::string (" ram_used" );
871871 seed (" ram" , std::move (ram));
872872
873+ WidgetConfig netTx;
874+ netTx.type = " sysmon" ;
875+ netTx.settings [" stat" ] = std::string (" net_tx" );
876+ seed (" network_tx" , std::move (netTx));
877+
878+ WidgetConfig netRx;
879+ netRx.type = " sysmon" ;
880+ netRx.settings [" stat" ] = std::string (" net_rx" );
881+ seed (" network_rx" , std::move (netRx));
882+
873883 WidgetConfig outputVolume;
874884 outputVolume.type = " volume" ;
875885 outputVolume.settings [" device" ] = std::string (" output" );
Original file line number Diff line number Diff line change @@ -210,6 +210,12 @@ namespace settings {
210210 if (name == " input_volume" ) {
211211 return tr (" settings.widgets.instances.input-volume" );
212212 }
213+ if (name == " network_tx" ) {
214+ return tr (" settings.widgets.instances.network-tx" );
215+ }
216+ if (name == " network_rx" ) {
217+ return tr (" settings.widgets.instances.network-rx" );
218+ }
213219 return std::string (name);
214220 }
215221
You can’t perform that action at this time.
0 commit comments