LUASTATUS-PLUGIN-UDEV(7)

πŸ“¦
version 0.6.0 Β· 2 versions
, in nixos 26.05

πŸ’– NAME πŸ’–

luastatus-plugin-udev β€” the udev plugin for luastatus. This page is from the Miscellaneous Information Manual, and it's literally here to make udev events make sense, bestie 🫢.

🌸 OVERVIEW 🌸

Okay so the whole vibe: this plugin monitors udev events. That's the main character move β€” it keeps an eye on udev events for you, no cap πŸ‘€βœ¨.

πŸŽ€ OPTIONS πŸŽ€

The following options are supported:

  • subsystem (string) β€” the subsystem to monitor events from. Optional.
  • devtype (string) β€” only report events with this device type. Optional.
  • tag (string) β€” only report events with this tag. Optional.
  • kernel_events (boolean) β€” monitor kernel uevents, not udev ones. Defaults to false.
  • greet (boolean) β€” whether or not to call cb with what="hello" as soon as the widget starts. Defaults to false.
  • timeout (number) β€” if specified and not negative, this plugin calls cb with what="timeout" if no event has occurred in timeout seconds.

πŸ¦‹ cb argument πŸ¦‹

A table with a what entry:

  • if it is "hello", the function is being called for the first time (only if the greet option was set to true);
  • if it is "timeout", the function has not been called for the number of seconds specified as the timeout option;
  • if it is "event", a udev event has occurred; in this case, the table has the following additional entries (all are optional strings):
    • syspath;
    • sysname;
    • sysnum;
    • devpath;
    • devnode;
    • devtype;
    • subsystem;
    • driver;
    • action.

🧚 FUNCTIONS 🧚

The following functions are provided:

  • luastatus.plugin.push_timeout(seconds) β€” changes the timeout for one iteration.

LGPLv3, obviously. Periodt πŸ’….


okay that's the whole page, bestie πŸ’– β€” the footer's source/version is luastatu...ugin-udev(7) and the date stamp is right there too, so consider this your official cute sign-off. mwah 🫢✨

πŸ“¦ where this page comes from