From f5b3d8433b3ec885c96a39d614c70dc2459cf879 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Mon, 2 May 2022 16:25:36 +0300 Subject: dotconfig/polybar: set the type of interface using a environment variable --- dotconfig/polybar/modules | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'dotconfig/polybar/modules') diff --git a/dotconfig/polybar/modules b/dotconfig/polybar/modules index e10965f..822d875 100644 --- a/dotconfig/polybar/modules +++ b/dotconfig/polybar/modules @@ -93,16 +93,13 @@ [module/network] type = internal/network - ; Name of the network interface to display. You can get the names of the - ; interfaces on your machine with `ip link` - interface = enp34s0 ; If no interface is specified, polybar can detect an interface of the given type. ; If multiple are found, it will prefer running interfaces and otherwise just ; use the first one found. ; Either 'wired' or 'wireless' ; New in version 3.6.0 - interface-type = wired + interface-type = ${env:NETWORK_TYPE:wired} ; Seconds to sleep between updates interval = 1.0 -- cgit v1.2.3-18-g5258