From b219f47f394e536198997578e4cce3c539b84b6d Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 7 Dec 2014 15:14:02 +0100 Subject: support the special interface name _first_ for ethernet/wireless Since we have deterministic device names in Linux, these strings are a much better default in the i3status config than "eth0" and "wlan0" (what we used before). --- i3status.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'i3status.conf') diff --git a/i3status.conf b/i3status.conf index 01c182c..7052e23 100644 --- a/i3status.conf +++ b/i3status.conf @@ -15,18 +15,18 @@ order += "ipv6" order += "disk /" order += "run_watch DHCP" order += "run_watch VPN" -order += "wireless wlan0" -order += "ethernet eth0" +order += "wireless _first_" +order += "ethernet _first_" order += "battery 0" order += "load" order += "tztime local" -wireless wlan0 { +wireless _first_ { format_up = "W: (%quality at %essid) %ip" format_down = "W: down" } -ethernet eth0 { +ethernet _first_ { # if you use %speed, i3status requires root privileges format_up = "E: %ip (%speed)" format_down = "E: down" -- cgit v1.2.3