diff options
author | aszlig <aszlig@redmoonstudios.org> | 2016-07-13 17:27:40 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2016-07-13 17:31:02 +0200 |
commit | 6df30f3f10edd5fab82bf2eb57ce47430124ac54 (patch) | |
tree | 45e7411a72790a973da74df011c0babaa152fd37 /modules/user/aszlig | |
parent | d72823444048e96fb9ad8f682e139655810c95db (diff) |
i3/conky: Suppress output to stderr
i3bar seems to close the FD for stderr, so conky will get a broken pipe error when writing error messages to stderr. Of course in the long run it's better to log these errors somewhere where they can be inspected later. But for now, it's better than terminating i3bar altogether, because that's really annoying ;-) Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules/user/aszlig')
-rw-r--r-- | modules/user/aszlig/services/i3/conky.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/user/aszlig/services/i3/conky.nix b/modules/user/aszlig/services/i3/conky.nix index 76c61160..93e554cc 100644 --- a/modules/user/aszlig/services/i3/conky.nix +++ b/modules/user/aszlig/services/i3/conky.nix @@ -95,7 +95,8 @@ let primary_netdev="$(echo "$raw_netinfo" | \ ${pkgs.gnused}/bin/sed -nre 's/^.*dev *([^ ]+).*$/\1/p')" - ${conky}/bin/conky -c "${baseConfig}" -t "${text}" + # FIXME: Log stderr to the journal! + ${conky}/bin/conky -c "${baseConfig}" -t "${text}" 2> /dev/null ''; in { |