From 65911327f3aa40d6bce145dbbcdecfa5b238b2ec Mon Sep 17 00:00:00 2001 From: Asmir A Date: Wed, 19 Mar 2025 12:48:26 +0100 Subject: [PATCH] home/i3status-rs: add if_command to net blocks to chech for iface presence --- home/i3status-rust.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/home/i3status-rust.nix b/home/i3status-rust.nix index 92899b5..4121902 100644 --- a/home/i3status-rust.nix +++ b/home/i3status-rust.nix @@ -12,6 +12,10 @@ }; blocks = [ + { + block = "keyboard_layout"; + driver = "sway"; + } { block = "battery"; interval = 10; @@ -36,20 +40,24 @@ { block = "net"; device = "wlan0"; + if_command = "ip link show wlan0"; interval = 2; } { block = "net"; device = "enp5s0"; + if_command = "ip link show enp5s0"; interval = 2; } { block = "net"; device = "enp7s0f3u1u1"; + if_command = "ip link show enp7s0f3u1u1"; interval = 2; } { block = "net"; + if_command = "ip link show eno1"; device = "eno1"; interval = 2; }