diff options
author | Aylur <[email protected]> | 2024-10-15 01:26:32 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-10-15 01:26:32 +0200 |
commit | 2f71cd4c08bb4514efe43533e6a5d03535204c29 (patch) | |
tree | fc991a12e159ad645187862c90f40731794d6e47 /lang/lua/init.lua | |
parent | 9fab13452a26ed55c01047d4225f699f43bba20d (diff) |
refactor lua and gjs lib
Diffstat (limited to 'lang/lua/init.lua')
-rw-r--r-- | lang/lua/init.lua | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lang/lua/init.lua b/lang/lua/init.lua new file mode 100644 index 0000000..b6ab30c --- /dev/null +++ b/lang/lua/init.lua @@ -0,0 +1,27 @@ +local lgi = require("lgi") +local Binding = require("astal.lib.binding") +local File = require("astal.lib.file") +local Process = require("astal.lib.process") +local Time = require("astal.lib.time") +local Variable = require("astal.lib.variable") + +return { + Variable = Variable, + bind = Binding.new, + + interval = Time.interval, + timeout = Time.timeout, + idle = Time.idle, + + subprocess = Process.subprocess, + exec = Process.exec, + exec_async = Process.exec_async, + + read_file = File.read_file, + read_file_async = File.read_file_async, + write_file = File.write_file, + write_file_async = File.write_file_async, + monitor_file = File.monitor_file, + + require = lgi.require, +} |