|
|
|
@@ -5,6 +5,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
local mainMod = "SUPER" -- Sets "Windows" key as main modifier
|
|
|
|
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 custom = require("custom-functions")
|
|
|
|
|
|
|
|
|
|
|
|
-- 1. Basic Binds
|
|
|
|
-- 1. Basic Binds
|
|
|
|
hl.bind(mainMod .. " + Q ", hl.dsp.exec_cmd(terminal))
|
|
|
|
hl.bind(mainMod .. " + Q ", hl.dsp.exec_cmd(terminal))
|
|
|
|
@@ -77,10 +78,10 @@ hl.bind(mainMod .. " + SHIFT + 9 ", hl.dsp.window.move({workspace = 9 }))
|
|
|
|
hl.bind(mainMod .. " + SHIFT + 0 ", hl.dsp.window.move({workspace = 10}))
|
|
|
|
hl.bind(mainMod .. " + SHIFT + 0 ", hl.dsp.window.move({workspace = 10}))
|
|
|
|
|
|
|
|
|
|
|
|
---- 6. special workspace (scratchpad)
|
|
|
|
---- 6. special workspace (scratchpad)
|
|
|
|
hl.bind(mainMod .. " + S ", hl.dsp.workspace.toggle_special("magic "))
|
|
|
|
hl.bind(mainMod .. " + S ", hl.dsp.workspace.toggle_special("magic" ))
|
|
|
|
hl.bind(mainMod .. " + B ", hl.dsp.workspace.toggle_special("magic2 "))
|
|
|
|
hl.bind(mainMod .. " + B ", hl.dsp.workspace.toggle_special("magic2" ))
|
|
|
|
hl.bind(mainMod .. " + X ", hl.dsp.workspace.toggle_special("phantom "))
|
|
|
|
hl.bind(mainMod .. " + X ", hl.dsp.workspace.toggle_special("phantom" ))
|
|
|
|
hl.bind(mainMod .. " + X ", hl.dsp.workspace.toggle_special("phantom "))
|
|
|
|
hl.bind(mainMod .. " + X ", hl.dsp.workspace.toggle_special("phantom" ))
|
|
|
|
|
|
|
|
|
|
|
|
hl.bind(mainMod .. " + SHIFT + S ", hl.dsp.window.move({ workspace = "special:magic" }))
|
|
|
|
hl.bind(mainMod .. " + SHIFT + S ", hl.dsp.window.move({ workspace = "special:magic" }))
|
|
|
|
hl.bind(mainMod .. " + SHIFT + B ", hl.dsp.window.move({ workspace = "special:book" }))
|
|
|
|
hl.bind(mainMod .. " + SHIFT + B ", hl.dsp.window.move({ workspace = "special:book" }))
|
|
|
|
@@ -129,7 +130,8 @@ hl.bind(mainMod .. " + SPACE " ,hl.dsp.exec_cmd("playerctl play-pause"))
|
|
|
|
hl.bind(mainMod .. " + SUPER_L", hl.dsp.exec_cmd(launcher .. " toggle"), { release = true })
|
|
|
|
hl.bind(mainMod .. " + SUPER_L", hl.dsp.exec_cmd(launcher .. " toggle"), { release = true })
|
|
|
|
hl.bind(mainMod .. " + F " ,hl.dsp.exec_cmd(browser))
|
|
|
|
hl.bind(mainMod .. " + F " ,hl.dsp.exec_cmd(browser))
|
|
|
|
hl.bind("ALT + C" ,hl.dsp.exec_cmd(ipc .. "plugin:clipper openPanel"))
|
|
|
|
hl.bind("ALT + C" ,hl.dsp.exec_cmd(ipc .. "plugin:clipper openPanel"))
|
|
|
|
hl.bind("code:148" ,hl.dsp.exec_cmd("kitty --class calc-term -o 'confirm_os_window_close 0' /home/venus/.cargo/bin/mathypad "))
|
|
|
|
-- hl.bind("code:148" ,hl.dsp.exec_cmd("kitty --class calc-term -o 'confirm_os_window_close 0' /home/venus/.cargo/bin/mathypad "))
|
|
|
|
|
|
|
|
hl.bind("code:148" ,hl.dsp.exec_cmd(ipc .. "plugin:noctalia-calulator toggle"))
|
|
|
|
|
|
|
|
|
|
|
|
hl.bind(" ALT + Q " , hl.dsp.exec_cmd(terminal, {float = true, border_size = 2, size = {"(monitor_w * 0.8)", "(monitor_h * 0.7)"}}))
|
|
|
|
hl.bind(" ALT + Q " , hl.dsp.exec_cmd(terminal, {float = true, border_size = 2, size = {"(monitor_w * 0.8)", "(monitor_h * 0.7)"}}))
|
|
|
|
hl.bind(mainMod .. " + W ", hl.dsp.exec_cmd(terminal, {float = true, border_size = 2, size = {"(monitor_w * 0.8)", "(monitor_h * 0.7)"}}))
|
|
|
|
hl.bind(mainMod .. " + W ", hl.dsp.exec_cmd(terminal, {float = true, border_size = 2, size = {"(monitor_w * 0.8)", "(monitor_h * 0.7)"}}))
|
|
|
|
@@ -147,7 +149,9 @@ hl.bind(mainMod .. " + SHIFT + I" ,hl.dsp.exec_cmd("scrcpy --no-audio --keyboar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---- 10.1 Shortcuts
|
|
|
|
---- 10.1 Shortcuts
|
|
|
|
hl.bind(mainMod .. " + CTRL + L ", hl.dsp.exec_cmd(ipc .. "lockScreen lock"))
|
|
|
|
hl.bind(mainMod .. " + CTRL + L " , hl.dsp.exec_cmd(ipc .. "lockScreen lock"))
|
|
|
|
|
|
|
|
-- Move window to monitor darkspot
|
|
|
|
|
|
|
|
hl.bind(mainMod .. " + ALT + H" , custom.MoveToDarkSpot)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- TODO Implement these
|
|
|
|
-- TODO Implement these
|
|
|
|
@@ -170,9 +174,24 @@ end)
|
|
|
|
--
|
|
|
|
--
|
|
|
|
hl.bind(mainMod .. " + O ", hl.dsp.submap("open-apps"))
|
|
|
|
hl.bind(mainMod .. " + O ", hl.dsp.submap("open-apps"))
|
|
|
|
|
|
|
|
|
|
|
|
---- 13. Mouse binds
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---- 14. submaps!
|
|
|
|
---- 14. submaps!
|
|
|
|
|
|
|
|
hl.bind(mainMod .. "+ PRINT" ,function()
|
|
|
|
|
|
|
|
hl.exec_cmd(ipc .. "plugin:screen-toolkit toggle")
|
|
|
|
|
|
|
|
hl.dispatch(hl.dsp.submap("screen-toolkit"))
|
|
|
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hl.define_submap("screen-toolkit", "reset", function()
|
|
|
|
|
|
|
|
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"))
|
|
|
|
|
|
|
|
end)
|
|
|
|
-- TODO write a timer submap that starts a timer of custom length when a key is pressed
|
|
|
|
-- TODO write a timer submap that starts a timer of custom length when a key is pressed
|
|
|
|
hl.bind(mainMod .. " + T" ,function()
|
|
|
|
hl.bind(mainMod .. " + T" ,function()
|
|
|
|
hl.dispatch(hl.dsp.submap("timer"))
|
|
|
|
hl.dispatch(hl.dsp.submap("timer"))
|
|
|
|
@@ -196,7 +215,8 @@ hl.define_submap("quick-settings", function ()
|
|
|
|
hl.bind("S" ,hl.dsp.exec_cmd(ipc .. "settings toggle"))
|
|
|
|
hl.bind("S" ,hl.dsp.exec_cmd(ipc .. "settings toggle"))
|
|
|
|
hl.bind("C" ,hl.dsp.exec_cmd(ipc .. "plugin:clipper togglePanel "))
|
|
|
|
hl.bind("C" ,hl.dsp.exec_cmd(ipc .. "plugin:clipper togglePanel "))
|
|
|
|
hl.bind("P" ,hl.dsp.exec_cmd(ipc .. "sessionMenu toggle"))
|
|
|
|
hl.bind("P" ,hl.dsp.exec_cmd(ipc .. "sessionMenu toggle"))
|
|
|
|
hl.bind("T" ,hl.dsp.exec_cmd(ipc .. "systemMonitor toggle"))
|
|
|
|
hl.bind("R" ,hl.dsp.exec_cmd(ipc .. "systemMonitor toggle"))
|
|
|
|
|
|
|
|
hl.bind("T" ,hl.dsp.exec_cmd(ipc .. "plugin:timer toggle"))
|
|
|
|
hl.bind("M" ,hl.dsp.exec_cmd(ipc .. "controlCenter toggle"))
|
|
|
|
hl.bind("M" ,hl.dsp.exec_cmd(ipc .. "controlCenter toggle"))
|
|
|
|
hl.bind("D" ,hl.dsp.exec_cmd(ipc .. "notifications toggleDND"))
|
|
|
|
hl.bind("D" ,hl.dsp.exec_cmd(ipc .. "notifications toggleDND"))
|
|
|
|
hl.bind("A" ,hl.dsp.exec_cmd(ipc .. "notifications dismissAll"))
|
|
|
|
hl.bind("A" ,hl.dsp.exec_cmd(ipc .. "notifications dismissAll"))
|
|
|
|
|