From ddf8528a133960938f6b9c17b324a1e81a841f5d Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Tue, 1 Aug 2023 23:11:27 +0200 Subject: i3status: use special _first_ interface --- i3status.conf | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/i3status.conf b/i3status.conf index 38589f9..5f038f4 100644 --- a/i3status.conf +++ b/i3status.conf @@ -6,33 +6,25 @@ general { interval = 5 } -__DEF__WIFI_START__ -order += "wireless __NIF_WIFI__" -__DEF__WIFI_END__ -__DEF__ETH_START__ -order += "ethernet __NIF_ETH__" -__DEF__ETH_END__ +order += "wireless _first_" +order += "ethernet _first_" order += "battery 0" order += "load" order += "volume master" order += "tztime local" -__DEF__WIFI_START__ # wifi : f1eb -wireless __NIF_WIFI__ { +wireless _first_ { format_up = ": (%quality at %essid, %bitrate) %ip" #format_down = ": down" } -__DEF__WIFI_END__ -__DEF__ETH_START__ # globe : f0ac # arrows : f0ec -ethernet __NIF_ETH__ { +ethernet _first_ { format_up = ": %ip (%speed)" - format_down = ":down" + format_down = ": down" } -__DEF__ETH_END__ # plug : f1e6 battery 0 { -- cgit v1.2.3