mirror of
https://github.com/don-philipe/knorke.git
synced 2025-11-08 14:57:02 +01:00
Fix string to number conversion
This commit is contained in:
4
vpn.lua
4
vpn.lua
@@ -48,11 +48,11 @@ awful.tooltip(
|
||||
preferred_positions = { "right", "left", "top", "bottom" },
|
||||
timer_function = function()
|
||||
local num_vpnc_proc = awful.spawn.with_shell("ps aux | grep vpnc | wc -l")
|
||||
if (num_vpnc_proc > 1) then
|
||||
if (tonumber(num_vpnc_proc) > 1) then
|
||||
return "VPNC"
|
||||
end
|
||||
local num_openconnect_proc = awful.spawn.with_shell("ps aux | grep openconnect | wc -l")
|
||||
if (num_openconnect_proc > 1) then
|
||||
if (tonumber(num_openconnect_proc) > 1) then
|
||||
return "OPENCONNECT"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user