VLOCK-PLUGINS(5)

πŸ“¦
version 2.2.2 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing

πŸ’– VLOCK-PLUGINS(5) πŸ’–

okay bestie so this is the vlock-plugins page from the Linux Programmer's Manual β€” yes it's a section 5 joint, we're in file-formats-and-conventions territory, very niche, very slay ✨


🌸 NAME 🌸

vlock-plugins β€” plugin support for vlock, fr fr πŸ’…


✨ DESCRIPTION ✨

okay so picture this: if vlock-main(8) gets compiled with plugin support, its default features are honestly… kinda mid 😭. Out of the box it can only do two things:

  • lock the current session
  • ask for authentication

(yes the original spells it "authenticiaton", we're keeping that typo energy, it's giving ✨character✨)

BUT πŸŽ€ β€” and this is the main character moment β€” you can extend those functions through plugins. These plugins get loaded when vlock-main starts up, and they can hand you hooks that get called at certain points during the lifetime of the vlock-main process. literally the way that works is so iconic πŸ¦‹


πŸ‘‘ DEFAULT PLUGINS πŸ‘‘

These ones come through when you install vlock with default options β€” no extra effort required, they just show up 🫢

  • all β€” this plugin locks all sessions by disabling console switching. it also gets loaded when you give the -a,--all option to vlock(1). periodt πŸ’…
  • new β€” this plugin switches to a new virtual console before disabling console switching through the "all" plugin. it also gets loaded when you give the -n,--new option to vlock(1). it's giving fresh start energy 🌸
  • nosysrq β€” Linux only bestie, don't @ me. this plugin disables the Linux SysRQ mechanism before the console switching is locked by the "all" plugin. it also gets loaded when you give the -s,--disable-sysrq option to vlock(1). okay so it's the responsible older sibling of the plugin family πŸ™ˆ

🌈 ADDITIONAL PLUGINS 🌈

these ones are NOT just hanging around β€” they're only available if you explicitly select them at build time. so like, you gotta ask nicely πŸ”₯

  • caca β€” this plugin runs a random libcaca screensaver when the screen is locked. random! screensaver! when! locked! iconic behaviour honestly πŸ˜­πŸŽ€

πŸ¦‹ WRITING PLUGINS πŸ¦‹

want to make your own?? obsessed. for information about writing plugins, see the PLUGINS file in the vlock source distribution. go be the main character of your own plugin, i believe in you πŸ’–


🌟 SEE ALSO 🌟


πŸ’œ AUTHORS πŸ’œ

Frank Benkstein <frank-vlock@benkstein.net> β€” thank you king πŸ‘‘


okay and that's the whole page bestie!! this one's from the Linux manual, dated 10 November 2007, and the whole thing lives under the VLOCK-PLUGINS(5) name β€” so next time someone's like "what even is a vlock plugin", you just send them this and walk away looking unbothered πŸ’…βœ¨ mwah, ily, go lock something responsibly πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from