config: Update config.lua

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2026-08-24 16:09:10 +02:00
parent 4e7a599c8a
commit 76a5f73ee5

View File

@@ -27,7 +27,7 @@ ly = {
-- gameoflife -> John Conway's Game of Life
-- dur_file -> .dur file format (https://github.com/cmang/durdraw/tree/master)
-- lua -> user-made animation written in LuaJIT
animation = none,
animation = "none",
-- Delay between each animation frame in milliseconds
animation_frame_delay = 5,
@@ -431,23 +431,26 @@ ly = {
-- The following examples below give an outline for setting up custom commands and labels.
-- Unless specified as optional, an option is mandatory.
-- Comments preceding with '##' are for documentation.
-- Comments preceding with '#' comment out the example INI.
-- Comments preceding with '-- --' are for documentation.
-- Comments preceding with '--' comment out the example code.
--# Declare a command with the F8 binding.
--[cmd:F8]
--# The name of the command to show up in Ly.
--# Note: "$" in "$brightness_up" fetches the appropriate string from the specified locale file
--# and is replaced with the value representing "brightness_up".
--# You can see the list of keys in any locale file in $CONFIG_DIRECTORY/ly/lang.
--cmd = touch /tmp/ly.gaming,
--name = custom command $brightness_up,
-- custom_commands = {
-- -- Declare a command with the F8 binding.
-- binding = "F8",
-- -- The name of the command to show up in Ly.
-- -- Note: "$" in "$brightness_up" fetches the appropriate string from the specified locale file
-- -- and is replaced with the value representing "brightness_up".
-- -- You can see the list of keys in any locale file in $CONFIG_DIRECTORY/ly/lang.name = "custom command $brightness_up",
-- cmd = "touch /tmp/ly.gaming",
-- },
--# Declare a label with an ID. This ID should be unique across all labels.
--[lbl:kernel]
--cmd = uname -srn,
--# Optional, defaulting to 0.
--# In frames, the time to re-run the command and update the label.
--# If 0, only run once and do not refresh afterwards
--refresh = 0,
-- custom_labels = {
-- -- Declare a label with an ID. This ID should be unique across all labels.
-- label = "kernel",
-- cmd = "uname -srn",
-- -- Optional, defaulting to 0.
-- -- In frames, the time to re-run the command and update the label.
-- -- If 0, only run once and do not refresh afterwards
-- refresh = 0,
-- }
}