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
+16 -17
View File
@@ -3,7 +3,9 @@
------@meta
--## @declaration hl, ipc, mainMod
local mainMod = "SUPER" -- Sets "Windows" key as main modifier
local ipc = "qs -c noctalia-shell ipc call "
-- local ipc = "qs -c noctalia-shell ipc call "
local ipc = "noctalia msg "
local ipp = "noctalia msg plugin "
local custom = require("custom-functions")
local hyper = "MOD3"
require("basic/submaps")
@@ -140,33 +142,30 @@ hl.bind(mainMod .. "+ CTRL + G" ,hl.dsp.exec_cmd("kitty agy" ,{ tag = "popu
---- 6. CUSTOM SCRIPTS AND FUNCTIONS ----
-- 6.1 custom key assignments
hl.config({ input = { kb_options = "caps:hyper", }})
-- hl.bind(hyper.. " + Hyper_L" ,function() hl.dispatch(hl.dsp.exec_cmd(ipc .. "plugin:clipper openPanel")) hl.dispatch(hl.dsp.submap("hyper-submap")) end)
hl.bind(hyper .. " + Hyper_L" ,hl.dsp.exec_cmd("noctalia msg panel-toggle clipboard"))
hl.bind(hyper .. " + Hyper_L" ,hl.dsp.exec_cmd(ipc .. "panel-toggle clipboard"))
-- TODO fix remote screen and remote keyboard shortcuts
hl.bind(mainMod .. " + CTRL + I" ,custom.remoteKM) -- Send Keyboard and Mouse input to phone via scrcpy
hl.bind(mainMod .. " + ALT + I" ,custom.remoteScreen) -- Open Phone Screen via scrcpy
hl.bind(mainMod .. "+ grave" ,custom.ToggleOddessyConnection) -- Toggle Oddesy monitor connection in hyprland
---- 7.
hl.bind(mainMod .. " + comma" ,hl.dsp.exec_cmd(ipc .. "controlCenter toggle"))
hl.bind(mainMod .. " + period" ,hl.dsp.exec_cmd(ipc .. "settings toggle"))
hl.bind(mainMod .. " + CTRL + SHIFT + L " ,hl.dsp.exec_cmd(ipc .. "lockScreen lock"))
---- 7. c
hl.bind(mainMod .. " + comma" ,hl.dsp.exec_cmd(ipc .. "panel-toggle control-center")) -- cant seem to find??
hl.bind(mainMod .. " + CTRL + SHIFT + L " ,hl.dsp.exec_cmd(ipc .. "lockScreen-lock"))
hl.bind(mainMod .. " + ALT + L " ,hl.dsp.exec_cmd(ipc .. "lockScreen lock"))
hl.bind("ALT + C" ,hl.dsp.exec_cmd(ipc .. "plugin:clipper openPanel"))
hl.bind("code:148" ,hl.dsp.exec_cmd(ipc .. "plugin:noctalia-calulator toggle"))
hl.bind(mainMod .. " + period" ,hl.dsp.exec_cmd(ipc .. "settings-toggle"))
hl.bind("PRINT" ,hl.dsp.exec_cmd("hyprshot -m active -m window --output-folder ~/Images/Screenshots"))
hl.bind("SHIFT + PRINT" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit annotate"))
hl.bind("ALT + PRINT" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit annotateWindow"))
hl.bind("CTRL + PRINT" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit annotateFullscreen"))
-- hl.bind("SHIFT + PRINT" , hl.dsp.exec_cmd("hyprshot -m region --output-folder ~/Images/Screenshots"))
-- hl.bind("ALT + PRINT" , hl.dsp.exec_cmd("hyprshot -m active -m output --output-folder ~/Images/Screenshots"))
-- Screen capture and annotation
local stk = ipc .. "plugin alexander/screen-toolkit:service all "
hl.bind("SHIFT + PRINT" ,hl.dsp.exec_cmd(stk .. "annotate"))
hl.bind("ALT + PRINT" ,hl.dsp.exec_cmd(stk .. "annotateWindow"))
hl.bind("CTRL + PRINT" ,hl.dsp.exec_cmd(stk .. "annotateFullscreen"))
---- 14. SUBMAP DISPATCHERS ----
hl.bind(mainMod .. "+ PRINT" ,function() hl.dispatch(hl.dsp.exec_cmd(stk .. "toggle")) hl.dispatch(hl.dsp.submap("screen-toolkit")) end)
hl.bind(mainMod .. " + O " ,hl.dsp.submap("open-apps"))
hl.bind(mainMod .. " + M " ,function() hl.dispatch(hl.dsp.exec_cmd(ipc .. "controlCenter toggle ")) hl.dispatch(hl.dsp.submap("quick-settings")) end)
hl.bind(mainMod .. "+ PRINT" ,function() hl.exec_cmd(ipc .. "plugin:screen-toolkit toggle") hl.dispatch(hl.dsp.submap("screen-toolkit")) end)
hl.bind(mainMod .. " + T" ,function() hl.dispatch(hl.dsp.submap("timer")) hl.exec_cmd(ipc .. "plugin:timer toggle") end)
hl.bind(mainMod .. " + M " ,function() hl.dispatch(hl.dsp.exec_cmd(ipc .. "panel-toggle control-center")) hl.dispatch(hl.dsp.submap("quick-settings")) end)
hl.bind(mainMod .. " + T" ,function() hl.dispatch(hl.dsp.submap("timer")) hl.exec_cmd(ipc .. "panel-toggle noctalia/timer:panel") end)