mirror of
https://github.com/fairyglade/ly.git
synced 2026-11-05 09:41:43 +00:00
config: Fix documentation & missing binds
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
1 parent
83903cf378
commit
2a2e0d738c
2 files changed
+22
-18
No files matched your search
@@ -314,7 +314,6 @@ pub fn LuaParser(comptime Struct: type) type {
|
|||||||
if (binding_type != .string) continue;
|
if (binding_type != .string) continue;
|
||||||
const binding = lua.toString(-1) catch continue;
|
const binding = lua.toString(-1) catch continue;
|
||||||
const bindingZ = temporary_allocator.dupe(u8, binding) catch "";
|
const bindingZ = temporary_allocator.dupe(u8, binding) catch "";
|
||||||
std.debug.print("{s}", .{bindingZ});
|
|
||||||
lua.pop(1); // binding value
|
lua.pop(1); // binding value
|
||||||
|
|
||||||
if (!custom.binds.contains(bindingZ)) {
|
if (!custom.binds.contains(bindingZ)) {
|
||||||
|
|||||||
+22
-17
@@ -204,7 +204,7 @@ ly = {
|
|||||||
corner_bottom_right = "labels",
|
corner_bottom_right = "labels",
|
||||||
|
|
||||||
-- Top left
|
-- Top left
|
||||||
corner_top_left = "shutdown,restart,britup,britdown,password battery",
|
corner_top_left = "shutdown,restart,britup,britdown,password battery binds",
|
||||||
|
|
||||||
-- Top right
|
-- Top right
|
||||||
corner_top_right = "clock numlock,capslock",
|
corner_top_right = "clock numlock,capslock",
|
||||||
@@ -476,23 +476,28 @@ ly = {
|
|||||||
-- Comments preceding with '-- --' are for documentation.
|
-- Comments preceding with '-- --' are for documentation.
|
||||||
-- Comments preceding with '--' comment out the example code.
|
-- Comments preceding with '--' comment out the example code.
|
||||||
|
|
||||||
-- custom_commands = {
|
custom_commands = {
|
||||||
-- -- Declare a command with the F8 binding.
|
{
|
||||||
-- binding = "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.name = "custom command $brightness_up",
|
-- 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",
|
||||||
|
cmd = "touch /tmp/ly.gaming",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
-- custom_labels = {
|
-- custom_labels = {
|
||||||
-- -- Declare a label with an ID. This ID should be unique across all labels.
|
-- {
|
||||||
-- label = "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.
|
||||||
-- refresh = 0,
|
-- -- If 0, only run once and do not refresh afterwards
|
||||||
|
-- refresh = 0,
|
||||||
|
-- },
|
||||||
-- }
|
-- }
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user