From 40d6518fa219d87bf5b386bf151d7801af0e6f7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Tue, 1 Jul 2025 14:59:10 +0200 Subject: [PATCH] xmobar: add network monitoring credits: https://github.com/gautaz/phoenix --- nix/configurations/tungsten/home/xmobar.nix | 20 ++++++++++++++++++-- nix/configurations/vanadium/home/xmobar.nix | 20 ++++++++++++++++++-- 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/nix/configurations/tungsten/home/xmobar.nix b/nix/configurations/tungsten/home/xmobar.nix index 14f65dad..b1c6d480 100644 --- a/nix/configurations/tungsten/home/xmobar.nix +++ b/nix/configurations/tungsten/home/xmobar.nix @@ -19,10 +19,26 @@ , "-l", "red" ] 10 , Run XMonadLog - ] + , Run + DynNetwork + [ "--template" + , ": ↑ kB/s ↓ kB/s" + , "--Low" + , "102400" + , "--High" + , "1024000" + , "--low" + , "green" + , "--normal" + , "orange" + , "--high" + , "red" + ] + 10 + ] , sepChar = "%" , alignSep = "}{" - , template = " %XMonadLog% }{ %battery% | %date% " + , template = " %XMonadLog% }{ %dynnetwork% | %battery% | %date% " } ''; }; diff --git a/nix/configurations/vanadium/home/xmobar.nix b/nix/configurations/vanadium/home/xmobar.nix index 14f65dad..b1c6d480 100644 --- a/nix/configurations/vanadium/home/xmobar.nix +++ b/nix/configurations/vanadium/home/xmobar.nix @@ -19,10 +19,26 @@ , "-l", "red" ] 10 , Run XMonadLog - ] + , Run + DynNetwork + [ "--template" + , ": ↑ kB/s ↓ kB/s" + , "--Low" + , "102400" + , "--High" + , "1024000" + , "--low" + , "green" + , "--normal" + , "orange" + , "--high" + , "red" + ] + 10 + ] , sepChar = "%" , alignSep = "}{" - , template = " %XMonadLog% }{ %battery% | %date% " + , template = " %XMonadLog% }{ %dynnetwork% | %battery% | %date% " } ''; };