LUASTATUS-PLUGIN-DBUS(7)
π NAME π
okay so this is the luastatus-plugin-dbus(7) page from the Miscellaneous Information Manual β and itβs literally the D-Bus plugin for luastatus, bestie. π
β¨ OVERVIEW β¨
This plugin subscribes to D-Bus signals. Thatβs the whole vibe check: itβs here to listen for signals and hand them to your widget. π¦
π OPTIONS π
The following options are supported, no cap:
greet: boolean β whether or not a first call tocbwithwhat="hello"should be made as soon as the widget starts. Defaults tofalse. π«Άtimeout: number β if specified and not negative, this plugin callscbwithwhat="timeout"if no D-Bus signal has been received intimeoutseconds. β°signals: array of tables β an array of tables with the following entries (all are optional, bestie):sender: string β sender name to match on (unique or well-known name).interface: string β D-Bus interface name to match on.signal: string β D-Bus signal name to match on.object_path: string β object path to match on.arg0: string β contents of first string argument to match on.flags: array of strings β the following flags are recognized:"match_arg0_namespace"β match first arguments that contain a bus or interface name with the given namespace."match_arg0_path"β match first arguments that contain an object path that is either equivalent to the given path, or one of the paths is a subpath of the other.
bus: string β specify the bus to subscribe to the signal on: either"system"or"session"; default is"session". π
π¦ CB ARGUMENT π¦
A table with a what entry. Itβs giving βhereβs what just happenedβ energy:
- If
whatis"hello", this is the first call tocb(only if thegreetoption was set totrue). π - If
whatis"timeout", a signal has not been received for the number of seconds specified as thetimeoutoption. π - If
whatis"signal", a signal has been received. In this case, the table has the following additional entries:sender: string β unique sender name.object_path: string β object path.interface: string β D-Bus interface name.signal: string β signal name.parameters: D-Bus object β signal arguments. π«Ά
πΈ D-BUS OBJECTS πΈ
D-Bus objects are marshalled as follows:
booleanβbooleanbyte,int16,uint16,int32,uint32,int64,uint64βstringdoubleβnumberstring,object path,signatureβstringmaybeβ as-is, or as a special object with value"nothing"handleβ special object with value"handle"array,tuple,dict entryβarray
If an object cannot be marshalled, a special object with an error is generated instead. π
π§ SPECIAL OBJECTS π§
Special objects represent D-Bus objects that cannot be marshalled to Lua.
A special object is a function that, when called, returns either of:
value;nil,error.
π COPYRIGHT π
LGPLv3
thatβs the whole page, bestie β luastatus-plugin-dbus(7) signing off π
β¨ (the footer is just that manual name; no extra version/date tea in the source π«Ά)
π¦ where this page comes from
- nixos 26.05: luastatus 0.6.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms