2013-09-07 14:28:39 +02:00
|
|
|
[<- home](https://github.com/copycat-killer/lain/wiki)
|
|
|
|
|
2013-09-07 12:10:58 +02:00
|
|
|
All you have to do is to include the module:
|
|
|
|
|
|
|
|
local lain = require("lain")
|
|
|
|
|
|
|
|
Some widgets require a terminal, lain default is `xterm`, but can be changed:
|
|
|
|
|
|
|
|
lain.widgets.terminal = "urxvtc"
|
|
|
|
|
|
|
|
or
|
|
|
|
|
|
|
|
lain.widgets.terminal = terminal
|
|
|
|
|
|
|
|
providing you have something like this:
|
|
|
|
|
|
|
|
terminal = "urxvtc"
|
|
|
|
|
|
|
|
in your `rc.lua`.
|
|
|
|
|
|
|
|
`terminal` may also be a lua function that accepts one parameter.
|
|
|
|
Something like this:
|
|
|
|
|
|
|
|
function footerm(cmd)
|
|
|
|
-- elaborate cmd
|
|
|
|
end
|
|
|
|
|
|
|
|
lain.widgets.terminal = footerm
|