[awesome] match multihop vpn

This commit is contained in:
Simon Bruder 2019-07-30 14:57:00 +00:00
parent 6bcf8b563d
commit 27ea0ac4ec
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -73,7 +73,7 @@ widgets.vpn.update = function()
helpers.async({ "/bin/ip", "link" }, function(output)
connected = false
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
widgets.vpn.widget:set_markup(markup.fontfg(theme.font, theme.colors.blue, vpn_server .. " "))
connected = true