added some keybinds and custom funcitions for managing the oddesy monitor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user