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