added some keybinds and custom funcitions for managing the oddesy monitor

This commit is contained in:
venus
2026-07-06 05:48:11 -05:00
parent 1df6d1d9a2
commit 2414373294
7 changed files with 85 additions and 37 deletions

View File

@@ -50,4 +50,31 @@ function C.ToggleOddessyConnection() -- Enables or disables oddessy monitor
end
end
-- local function CompilerWindowOpen()
-- local clients = hl.get_windows()
-- for _,w in ipairs(clients) do
-- if w.tags == "compiler" then
-- return w.stable_id
-- end
-- end
-- hl.exec_cmd("kitty", {
-- hl.dsp.window.tag = { action = "add", value = "compiler" },
-- })
-- return false
-- end
function C.RunDevelopementCode()
local o = CompilerWindowOpen()
if o then
hl.exec_cmd('notify-send "open"')
else
hl.exec_cmd('notify-send "none"')
end
-- if no tagged kitty window exists, create one
-- color the border red
-- if a tagged compiler window does exist
-- switch to that window and run the last command
-- expand later with dynamic analysis of commands
end
return C