浏览代码

Load wlan device to environment variables

Colin Powell 5 年之前
父节点
当前提交
c5e845b668
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2 0
      i3/.xsession
  2. 1 1
      polybar/.config/polybar/config

+ 2 - 0
i3/.xsession

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

+ 1 - 1
polybar/.config/polybar/config

@@ -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>