-
-
Notifications
You must be signed in to change notification settings - Fork 717
Closed
Labels
Description
Is there a way to add var %default_interface%
to auto detect which interface connects to internet with network module ?
[module/networkspeedup]
type = internal/network
interface = %default_interface%
label-connected = "%upspeed:7%"
format-connected = <label-connected>
format-connected-prefix = " "
format-connected-prefix-foreground = #5b
[module/networkspeeddown]
type = internal/network
interface = %default_interface%
label-connected = "%downspeed:7%"
format-connected = <label-connected>
format-connected-prefix = " "
format-connected-prefix-foreground = #5b
as
%default_interface% = $(ip route | grep '^default' | awk '{print $5}')
TaylanTatli, bitcrush, JFonS, ibrokemypie, neh and 25 more