diff options
author | aszlig <aszlig@redmoonstudios.org> | 2013-08-15 12:33:56 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2013-08-15 13:52:43 +0200 |
commit | 90df58c79d2f8d64acd1e120df37106aedd4b347 (patch) | |
tree | 56336bf3e4f9202742850651674aa8944c910edd | |
parent | 20dc12f9462ff932c6df9f31d4f59e0fc598eb0a (diff) |
i3: Allow to specify primary network interface.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
-rw-r--r-- | cfgfiles/i3.conf | 2 | ||||
-rw-r--r-- | common.nix | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/cfgfiles/i3.conf b/cfgfiles/i3.conf index 9f2d6728..0d9c54eb 100644 --- a/cfgfiles/i3.conf +++ b/cfgfiles/i3.conf @@ -173,7 +173,7 @@ bar { bar { output @rightHead@ - status_command @conky@/bin/conky -c "@conkyrc@" -t 'NET: ${upspeed enp0s25} ${downspeed enp0s25} | DF: ${fs_used /}/${fs_size /} | LAVG: $loadavg | TEMP - CPU: ${platform coretemp.0 temp 2}C ${platform coretemp.0 temp 3}C ${platform coretemp.0 temp 4}C ${platform coretemp.0 temp 5}C - GPU: ${hwmon 0 temp 1}C - OUTSIDE: ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EDMA temperature}C | ${time %a %b %d %T %Z %Y}' + status_command @conky@/bin/conky -c "@conkyrc@" -t 'NET: ${upspeed @primaryNetInterface@} ${downspeed @primaryNetInterface@} | DF: ${fs_used /}/${fs_size /} | LAVG: $loadavg | TEMP - CPU: ${platform coretemp.0 temp 2}C ${platform coretemp.0 temp 3}C ${platform coretemp.0 temp 4}C ${platform coretemp.0 temp 5}C - GPU: ${hwmon 0 temp 1}C - OUTSIDE: ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EDMA temperature}C | ${time %a %b %d %T %Z %Y}' colors { focused_workspace #5c5cff #e5e5e5 diff --git a/common.nix b/common.nix index 03d45c11..08cf1530 100644 --- a/common.nix +++ b/common.nix @@ -120,6 +120,8 @@ leftHead = head config.services.xserver.xrandrHeads; rightHead = last config.services.xserver.xrandrHeads; + primaryNetInterface = "enp0s25"; + conkyrc = pkgs.writeText "conkyrc" '' cpu_avg_samples 2 net_avg_samples 2 |