Otter-shell · #192

Provide live Example in Otter Greeter Documentation

PendingImprovement1 votes0 commentsby jarn KFP

Problem: New users may find ambiguity in documentation. Also, Otter Greeter itself does not have link to lua config document.

Solution:

  1. Add a link to zoolander lua config to Otter-Greeter documentation or provide example config separately.
  2. Provide live example of the setting should allow users to see how setting works together as a whole. How to type them in for actual usage.

Example: Otter-Greeter-Zoolander.lua Documentation on how to write a lua config for this is at https://git.pika-os.com/otter-shell/zoolander/src/branch/main/docs/LUA-API.md#zlset_keyboardoptions I wanted to enable numlock by default. The documentation says numlock (boolean) which I'm not sure if it should be zl.set_keyboard({numlock = true})or zl.set_keyboard({numlock = {enable = true}}) because in the live config file there is the enable=true in multiple settings. I got confirmation about how to write it on Discord.

Solution is simply to include an example setting at the end of the page as a demo. Ideally every available options are in the example. If users see zl.set_keyboard({numlock = true}) in the example, then they know editing the setting in that way will not brick their login screen.

This Lua document should also be linked to Otter Greeter page. This is because it is quite difficult to search for zoolander from search engine. The name seems to coincide with a movie, and a theme for something. Chances are Otter Greeter user need help will search for Otter Greeter and find no link to how to write the lua config. See the name zoolander and search for documentation and end up either on a page about a comedy movie or theme of something. Simply add a link to the last line of the documentation of Otter Greeter should save a lot of time. Add a sample lua with full use of all relevant config will also help.

I got this idea from Niri config documentation. When they explain config, they also provide example to reinforce the confidence. This is also a proven effective way in language learning that students who memorize phrase do better than those who memorize just words. Added context improve understanding and proficiency.

Thank you for consideration

Discussion

Sign in with Discord to comment.