Add wireguard interface detection

This commit is contained in:
don philipe
2024-03-29 14:09:40 +01:00
parent a7b10c63fa
commit d427081284

View File

@@ -20,7 +20,7 @@ gears.timer {
timeout = 10, timeout = 10,
autostart = true, autostart = true,
callback = function () callback = function ()
awful.spawn.easy_async_with_shell("ifconfig | grep \"tun.*:\"", awful.spawn.easy_async_with_shell("ifconfig | grep \"tun.*:\\|wg.*:\"",
function (stdout, _, _, _) function (stdout, _, _, _)
if (stdout == "") then if (stdout == "") then
widget.icon:set_image(icon_vpn_noconn) widget.icon:set_image(icon_vpn_noconn)