aboutsummaryrefslogtreecommitdiff
path: root/.config/luastatus-scripts-dwm/file-contents.lua
blob: 1ed02ac0a7508d04b9c69ac26bebd53a2da0cec3 (plain)
1
2
3
4
5
6
7
widget = luastatus.require_plugin('file-contents-linux').widget{
    filename = "/tmp/bar_status",
    cb = function(f)
        -- show the first line of the file
        return string.format(" %s", f:read('*line'))
    end,
}