Load wlan device to environment variables

This commit is contained in:
Colin Powell
2019-11-24 22:05:00 -05:00
parent ce7133a91b
commit c5e845b668
2 changed files with 3 additions and 1 deletions

2
i3/.xsession Normal file
View File

@ -0,0 +1,2 @@
WLAN=/sbin/ifconfig | grep wlp | tail -1 | cut -d ':' -f 1
i3

View File

@ -220,7 +220,7 @@ label = %percentage_used%%
[module/wlan]
type = internal/network
interface = wlp3s0
interface = ${env:WLAN:wlp2s0}
interval = 3.0
format-connected = <ramp-signal> <label-connected>