From 52a405d9edb9a121375c13b10d54d6b5804c5a1f Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 18 May 2021 15:39:49 +0200 Subject: [PATCH] home: i3bar: adapt config to v0.20 --- home/x/i3bar.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/home/x/i3bar.nix b/home/x/i3bar.nix index c4b1e5a..d75951f 100644 --- a/home/x/i3bar.nix +++ b/home/x/i3bar.nix @@ -38,12 +38,10 @@ in warning = 20.0; alert = 10.0; } - # TODO: update to new format when i3status-rust updates to v0.20: - # https://github.com/greshake/i3status-rust/blob/4d55b1d94ee09cbdefd805841fb54a2a4a0663a4/doc/blocks.md#available-format-keys-11 { block = "memory"; display_type = "memory"; - format_mem = "{Mug}/{MTg}GB"; + format_mem = "{mem_used;G}/{mem_total;G}"; warning_mem = 70.0; critical_mem = 90.0; # don't show swap @@ -72,8 +70,7 @@ in block = "bluetooth"; mac = config.my.secrets.bluetooth-mouse-mac-address; hide_disconnected = true; - # TODO: use format when i3status-rust updates to v0.20 - # format = "{percentage}"; + format = "{percentage}"; } { block = "music";