dotfiles/.config/awesome/lanxu/README.md

723 B

lanxu awesome scripts

Requirements

  • dkjson (for parsing json. Available with this widget)

How to use

You may create your widget like this:

local mcstatus = require("lanxu/mcstatus")
myserverstatus = mcstatus({
  settings = function()
    widget.markup = "PLAYERS <b>" .. totalplayers .. "</b>" 
  end
})

After this you can use "myserverstatus" like any other textbox widget

full list of available settings below

myserverstatus = mcstatus({
  hideempty = false,
  hideoffline = true,
  calluri = "https://page.not.found/mc_stats.php?type=server_status",
  settings = function()
    widget.markup = "PLAYERS <b>" .. totalplayers .. "</b>" 
  end
})