Compare commits
2
Commits
f5781cb444
...
bff9e48dfe
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bff9e48dfe | ||
|
|
68224c1308 |
+28
-8
@@ -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"))
|
||||||
|
|||||||
@@ -33,6 +33,10 @@ hl.config = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hl.env("XCURSOR_SIZE", "24")
|
||||||
|
hl.env("HYPRCURSOR_SIZE", "24")
|
||||||
|
hl.env("ELECTRON_OZONE_PLATFORM_HINT", "auto")
|
||||||
|
hl.env("QT_QPA_PLATFORMTHEME", "qt6ct")
|
||||||
-------------------
|
-------------------
|
||||||
--- PERMISSIONS ---
|
--- PERMISSIONS ---
|
||||||
-------------------
|
-------------------
|
||||||
|
|||||||
@@ -3,4 +3,20 @@ local C = {}
|
|||||||
function C.startTimer()
|
function C.startTimer()
|
||||||
-- TODO implement custom timer logic here
|
-- TODO implement custom timer logic here
|
||||||
end
|
end
|
||||||
|
function C.MoveToDarkSpot()
|
||||||
|
local targetMonitor = "DP-9"
|
||||||
|
hl.dispatch(hl.dsp.window.move({monitor = targetMonitor, x = 0, y = 0}))
|
||||||
|
hl.exec_cmd("notify-send 'moved to " .. targetMonitor .. "'")
|
||||||
|
end
|
||||||
|
|
||||||
|
local function phoneSocket()
|
||||||
|
-- Determine phone socket connection
|
||||||
|
-- Determine wired or wireless state
|
||||||
|
-- If wired connect over cable and set phone socket
|
||||||
|
-- If wireless connect over socker
|
||||||
|
-- If not on network notify
|
||||||
|
end
|
||||||
|
|
||||||
|
function C.RemoteToPhone()
|
||||||
|
end
|
||||||
return C
|
return C
|
||||||
|
|||||||
+3
-3
@@ -22,9 +22,9 @@ hl.on("hyprland.start", function()
|
|||||||
hl.exec_cmd("kdeconnectd")
|
hl.exec_cmd("kdeconnectd")
|
||||||
-- hl.exec_cmd("hyprshell run &")
|
-- hl.exec_cmd("hyprshell run &")
|
||||||
hl.exec_cmd("vesktop -m", {workspace ="special:vesktop silent"})
|
hl.exec_cmd("vesktop -m", {workspace ="special:vesktop silent"})
|
||||||
hl.exec_cmd(email, {workspace ="special:vesktop silent"})
|
hl.exec_cmd(email, {workspace ="special:email silent"})
|
||||||
hl.exec_cmd(notes, {workspace ="special:vesktop silent"})
|
hl.exec_cmd(notes, {workspace ="special:notes silent"})
|
||||||
hl.exec_cmd("steam --forcedesktopscaling 0.5", {workspace ="special:vesktop silent"})
|
hl.exec_cmd("steam --forcedesktopscaling 0.5", {workspace ="special:gaming silent"})
|
||||||
hl.exec_cmd("protonmail-bridge") --no-window) TODO set up sddm to unlock keychain
|
hl.exec_cmd("protonmail-bridge") --no-window) TODO set up sddm to unlock keychain
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user