Module hyprlua
Hyprlua Library This library handles everything
Functions
write_to_file (file_path) | Writes all module configurations to a specified file. |
Functions
- write_to_file (file_path)
-
Writes all module configurations to a specified file.
This function serializes each module's configuration and writes them sequentially to the provided file.
Parameters:
- file_path string The path to the file where configurations will be saved.
Returns:
-
boolean `true` if the operation succeeds, otherwise `false` along with an error message.
Usage:
local success, err = hyprlua.write_to_file("config.lua") if not success then print("Error writing configurations:", err) end