]> git.rmz.io Git - dotfiles.git/commitdiff
awesome: cleanup network_widget
authorSamir Benmendil <samir.benmendil@ultrahaptics.com>
Fri, 2 Mar 2018 08:44:39 +0000 (08:44 +0000)
committerSamir Benmendil <samir.benmendil@ultrahaptics.com>
Fri, 2 Mar 2018 08:44:39 +0000 (08:44 +0000)
I should find a better way of doing this.

I'm also not sure if I want to keep showing the indicator for cabled
connections.

awesome/widgets/network_widget.lua

index 2d9700b950ffeadc1d7f783a73197328eac5fb76..9b9b974119da1ca8309a69d2536b1554fadc1c96 100644 (file)
@@ -5,17 +5,11 @@ local widget
 if utils.host == "chronos" then
     widget = net_widget.wireless({interface="wlp3s0", command_mode="newer", font='monospace'})
 end
 if utils.host == "chronos" then
     widget = net_widget.wireless({interface="wlp3s0", command_mode="newer", font='monospace'})
 end
-if utils.host == "smartlab-imac2" then
-    widget = net_widget.wireless({interface="wlp3s0", command_mode="newer", font='monospace'})
-end
 if utils.host == "hactar" then
     widget = net_widget.indicator({interfaces={"enp3s0"}, command_mode="newer", font='monospace'})
 end
 if utils.host == "hactar" then
     widget = net_widget.indicator({interfaces={"enp3s0"}, command_mode="newer", font='monospace'})
 end
-if utils.host == "sb-arch" then
-    widget = net_widget.indicator({interfaces={"enp0s31f6"}, command_mode="newer", font='monospace'})
-end
-if utils.host == "UH-LPT044" then
-    widget = net_widget.wireless({interface="wlp4s0", command_mode="newer", font='monospace'})
+if utils.host == "uh-nuc001" then
+    widget = net_widget.indicator({interfaces={"eno1"}, command_mode="newer", font='monospace'})
 end
 
 return widget
 end
 
 return widget