Rename all lua_grpc to lua

This commit is contained in:
Ottatop 2024-01-16 14:23:18 -06:00
parent 0b75829865
commit 2dd170cf10
20 changed files with 4 additions and 10 deletions

View file

@ -84,7 +84,7 @@ require("pinnacle").setup(function(Pinnacle)
end)
-- Spawning must happen after you add tags, as Pinnacle currently doesn't render windows without tags.
Process:spawn(terminal)
Process:spawn_once(terminal)
-- Create a layout cycler to cycle layouts on an output.
local layout_cycler = Tag:new_layout_cycler({

View file

@ -48,4 +48,3 @@ kill_keybind = { modifiers = ["Ctrl", "Alt", "Shift"], key = "escape" }
#
# Here, LUA_PATH and LUA_CPATH are used to tell Lua the path to the library.
[envs]
LUA_PATH = "$PINNACLE_LUA_GRPC_DIR/?.lua;$PINNACLE_LUA_GRPC_DIR/?/init.lua;$LUA_PATH"

View file

@ -1,5 +1,5 @@
fn main() {
println!("cargo:rerun-if-changed=api/lua_grpc");
println!("cargo:rerun-if-changed=api/lua");
println!("cargo:rerun-if-changed=api/protocol");
let xdg = xdg::BaseDirectories::with_prefix("pinnacle").unwrap();
@ -11,7 +11,7 @@ fn main() {
let remove_default_config = format!("rm -r {data_dir:?}/default_config");
let copy_default_config =
format!("cp -r ./api/lua_grpc/examples/default {data_dir:?}/default_config");
format!("cp -r ./api/lua/examples/default {data_dir:?}/default_config");
std::process::Command::new("/bin/sh")
.arg("-c")
@ -52,7 +52,7 @@ fn main() {
.wait()
.unwrap();
std::env::set_current_dir("api/lua_grpc").unwrap();
std::env::set_current_dir("api/lua").unwrap();
std::process::Command::new("luarocks")
.arg("make")
.arg("--local")

View file

@ -414,11 +414,6 @@ impl State {
crate::XDG_BASE_DIRS.get_data_file("protobuf"),
);
std::env::set_var(
"PINNACLE_LUA_GRPC_DIR",
crate::XDG_BASE_DIRS.get_data_file("lua_grpc"),
);
let (grpc_sender, grpc_receiver) =
calloop::channel::channel::<Box<dyn FnOnce(&mut Self) + Send>>();