xaizek / d2if (License: GPLv2+) (since 2018-12-07)
Simple dzen2 input formatter, which is supposed to not waste CPU time for nothing and provides a number of builtin "widgets" for displaying system information.
Commit abb416490bc07e69f47ff4cbdcfa1a6ae18d91e7

Add space between stats of network interfaces
Author: xaizek
Author date (UTC): 2018-11-29 18:22
Committer name: xaizek
Committer date (UTC): 2018-11-29 18:22
Parent(s): 681f9361189e6ab04340122a9a5f161bdbf3ec8b
Signing key: 99DC5E4DB05F6BE2
Tree: 70eca60bf7f21ece444078b91d53d214776d93fb
File Lines added Lines deleted
src/Network.cpp 4 0
File src/Network.cpp changed (mode: 100644) (index f7a3580..a290750)
... ... void Network::update()
45 45 std::ostringstream result; std::ostringstream result;
46 46
47 47 const Network::ifaceList &ifaces { getIfacesInfo() }; const Network::ifaceList &ifaces { getIfacesInfo() };
48 int i = 0;
48 49 for (const std::pair<std::string, ifaceInfo> &iface : ifaces) { for (const std::pair<std::string, ifaceInfo> &iface : ifaces) {
49 50 const auto prevIt = last.find(iface.first); const auto prevIt = last.find(iface.first);
50 51 const ifaceInfo prev { const ifaceInfo prev {
 
... ... void Network::update()
67 68 result << speedColor result << speedColor
68 69 << std::setw(3) << rx << " k↓ " << std::setw(3) << rx << " k↓ "
69 70 << std::setw(3) << tx << " k↑"; << std::setw(3) << tx << " k↑";
71 if (i < static_cast<int>(ifaces.size()) - 1) {
72 result << ' ';
73 }
70 74 } }
71 75
72 76 Field::setText(result.str()); Field::setText(result.str());
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/d2if

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/d2if

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master