mirror of
https://github.com/don-philipe/knorke.git
synced 2025-11-08 14:57:02 +01:00
Add wireguard interface detection
This commit is contained in:
2
vpn.lua
2
vpn.lua
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user