in the process of fixing noctalia v5 ipc

This commit is contained in:
venus
2026-09-10 20:44:10 -05:00
parent ad815a0831
commit 3ebe7965d6
2 changed files with 34 additions and 34 deletions
+18 -17
View File
@@ -1,5 +1,5 @@
local mainMod = "SUPER" -- Sets "Windows" key as main modifier
local ipc = "qs -c noctalia-shell ipc call "
local ipc = "noctalia msg "
local custom = require("custom-functions")
local function vim_motions_rebind_keys() -- Pressing H, J, K, L sends Left, Down, Up, Right to the active window
@@ -10,37 +10,38 @@ local function vim_motions_rebind_keys() -- Pressing H, J, K, L sends Left, Down
end
local function clipper_submap_keys() -- A submap for quick access to certain clipboard and screen tools. Pressing H, J, K, L sends Left, Down, Up, Right to the active window.
hl.bind("C" ,hl.dsp.exec_cmd(ipc .. "plugin:clipper openPanel"))
hl.bind("C" ,hl.dsp.exec_cmd(ipc .. "panel-toggle clipboard"))
vim_motions_rebind_keys()
local function exit() hl.dispatch(hl.dsp.submap("reset")) hl.dispatch(hl.dsp.exec_cmd(ipc .. "plugin:clipper closePanel")) end
local function exit() hl.dispatch(hl.dsp.submap("reset")) hl.dispatch(hl.dsp.exec_cmd(ipc .. "panel-close clipboard")) end
hl.bind("escape" ,exit )
hl.bind("MOD3" .. " + Hyper_L" ,exit )
end
hl.define_submap("hyper-submap", function()
clipper_submap_keys()
hl.bind("S" ,hl.dsp.exec_cmd(ipc .. "plugin:screen-toolkit toggle"))
hl.bind("T" ,hl.dsp.exec_cmd(ipc .. "plugin:timer toggle"))
hl.bind("M" ,hl.dsp.exec_cmd(ipc .. "controlCenter toggle"))
hl.bind("S" ,hl.dsp.exec_cmd(ipc .. "plugin alexander/screen-toolkit:service all toggle"))
hl.bind("T" ,hl.dsp.exec_cmd(ipc .. "panel-toggle noctalia/timer:panel"))
hl.bind("M" ,hl.dsp.exec_cmd(ipc .. "panel-toggle control-center"))
end)
hl.define_submap("screen-toolkit", "reset", function() -- Access the screen toolkit options
hl.bind("S" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit toggle"))
hl.bind("C" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit color"))
hl.bind("P" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit pallete"))
hl.bind("O" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit ocr"))
hl.bind("L" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit lens"))
hl.bind("A" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit annotate"))
hl.bind("SHIFT + A" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit annotateWindow"))
hl.bind("R" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit recordMp4"))
hl.bind("SHIFT + R" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit recordFullscreenMp4"))
local stk = ipc .. "plugin alexander/screen-toolkit:service all "
hl.bind("S" ,hl.dsp.exec_cmd(stk .. "toggle"))
hl.bind("C" ,hl.dsp.exec_cmd(stk .. "color"))
hl.bind("P" ,hl.dsp.exec_cmd(stk .. "pallete"))
hl.bind("O" ,hl.dsp.exec_cmd(stk .. "ocr"))
hl.bind("L" ,hl.dsp.exec_cmd(stk .. "lens"))
hl.bind("A" ,hl.dsp.exec_cmd(stk .. "annotate"))
hl.bind("W" ,hl.dsp.exec_cmd(stk .. "annotateWindow"))
hl.bind("R" ,hl.dsp.exec_cmd(stk .. "recordMp4"))
hl.bind("M" ,hl.dsp.exec_cmd(stk .. "recordFullscreenMp4"))
hl.bind("catchall" ,function ()
hl.dispatch(hl.dsp.submap("reset"))
hl.dispatch(hl.dsp.exec_cmd(ipc .. "plugin:screen-toolkit toggle "))
end)
end)
hl.define_submap("timer", function () -- Open and create timers, pause, reset, and start timers.
-- depricated with noctalia v5
hl.bind("T" ,hl.dsp.exec_cmd(ipc .. "plugin:timer toggle"))
hl.bind("P" ,hl.dsp.exec_cmd(ipc .. "plugin:timer pause"))
hl.bind("R" ,hl.dsp.exec_cmd(ipc .. "plugin:timer reset"))
@@ -55,7 +56,7 @@ end)
hl.define_submap("quick-settings", function () -- An Interface for quickly accessing settings and toggling certain features.
hl.bind("V" ,hl.dsp.exec_cmd("protonvpn-app & hyprctl dispatch submap vpn"))
hl.bind("S" ,hl.dsp.exec_cmd(ipc .. "settings toggle"))
hl.bind("S" ,hl.dsp.exec_cmd(ipc .. "panel-toggle settings"))
hl.bind("C" ,hl.dsp.exec_cmd(ipc .. "plugin:clipper togglePanel "))
hl.bind("P" ,hl.dsp.exec_cmd(ipc .. "sessionMenu toggle"))
hl.bind("R" ,hl.dsp.exec_cmd(ipc .. "systemMonitor toggle"))