mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-06 04:56:34 +05:30
update tailscale host
This commit is contained in:
@ -3,7 +3,7 @@ local watch = require("awful.widget.watch")
|
|||||||
local wibox = require("wibox")
|
local wibox = require("wibox")
|
||||||
|
|
||||||
local tailscale = wibox.widget.textbox("Home: NA")
|
local tailscale = wibox.widget.textbox("Home: NA")
|
||||||
watch("bash -c \"tailscale ping pi | awk '{print $NF}'\"", 10, function(_, stdout)
|
watch("bash -c \"tailscale ping vega | awk '{print $NF}'\"", 10, function(_, stdout)
|
||||||
tailscale.text = "Home:" .. " " .. stdout
|
tailscale.text = "Home:" .. " " .. stdout
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user