[awesome] match multihop vpn
This commit is contained in:
parent
6bcf8b563d
commit
27ea0ac4ec
|
@ -73,7 +73,7 @@ widgets.vpn.update = function()
|
||||||
helpers.async({ "/bin/ip", "link" }, function(output)
|
helpers.async({ "/bin/ip", "link" }, function(output)
|
||||||
connected = false
|
connected = false
|
||||||
for line in output:gmatch("[^\r\n]+") do
|
for line in output:gmatch("[^\r\n]+") do
|
||||||
vpn_server = string.match(line, "^%d+: mullvad%-(%a%a%d+):")
|
vpn_server = string.match(line, "^%d+: mullvad%-(%g+):")
|
||||||
if vpn_server then
|
if vpn_server then
|
||||||
widgets.vpn.widget:set_markup(markup.fontfg(theme.font, theme.colors.blue, vpn_server .. " "))
|
widgets.vpn.widget:set_markup(markup.fontfg(theme.font, theme.colors.blue, vpn_server .. " "))
|
||||||
connected = true
|
connected = true
|
||||||
|
|
Reference in a new issue