Cleaned up config some and added window rule for fullscreen gaps

This commit is contained in:
venus
2026-06-01 13:57:46 -05:00
parent 2250446148
commit f5781cb444
6 changed files with 81 additions and 100 deletions

View File

@@ -8,8 +8,6 @@ local ipc = "qs -c noctalia-shell ipc call "
-- 1. Basic Binds
hl.bind(mainMod .. " + Q ", hl.dsp.exec_cmd(terminal))
hl.bind(" ALT + Q " , hl.dsp.exec_cmd(terminal, {window = "class:popup-term"}))
hl.bind(mainMod .. " + W ", hl.dsp.exec_cmd(terminal, {window = "class:popup-term"}))
hl.bind(mainMod .. " + C ", hl.dsp.window.close())
hl.bind(mainMod .. " + SHIFT + CTRL + M ", hl.dsp.exit())
-- hl.bind(mainMod .. " + E ", hl.dsp.exec(fileManager))
@@ -86,16 +84,19 @@ 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 + B ", hl.dsp.window.move({ workspace = "special:book" }))
hl.bind(mainMod .. " + SHIFT + G ", hl.dsp.window.move({ workspace = "special:gaming" }))
-- TODO Rework this with lua
hl.bind(mainMod .. " + D " ,hl.dsp.workspace.toggle_special("discord "))
hl.bind(mainMod .. " + D " ,function ()
hl.dispatch(hl.dsp.workspace.toggle_special("vesktop"))
hl.exec_cmd("vesktop -m", {workspace ="special:vesktop silent"})
end)
hl.bind(mainMod .. " + E " ,function ()
hl.dispatch(hl.dsp.workspace.toggle_special("email"))
hl.exec_cmd(email)
hl.exec_cmd(email, {workspace ="special:email silent"})
end)
hl.bind(mainMod .. " + G " ,function ()
hl.dispatch(hl.dsp.workspace.toggle_special("gaming"))
hl.exec_cmd("steam -forcedesktopscaling 0.5")
hl.exec_cmd("steam -forcedesktopscaling 0.5",{workspace ="special:gaming silent"})
end)
hl.bind(mainMod .. " + N " ,function ()
hl.dispatch(hl.dsp.workspace.toggle_special("notes"))
@@ -130,6 +131,9 @@ hl.bind(mainMod .. " + F " ,hl.dsp.exec_cmd(browser))
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(" 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)"}}))
-- TODO rework with LUA
-- hl.bind(mainMod .. " + escape" ,hl.dsp.exec_cmd("kitty --class btop -o "confirm_os_window_close 0" /usr/bin/btop"))
-- hl.bind(mainMod .. " + SHIFT + escape" ,hl.dsp.exec_cmd("kitty --class btop -o "confirm_os_window_close 0" /usr/bin/nvtop"))
@@ -145,9 +149,6 @@ hl.bind(mainMod .. " + SHIFT + I" ,hl.dsp.exec_cmd("scrcpy --no-audio --keyboar
---- 10.1 Shortcuts
hl.bind(mainMod .. " + CTRL + L ", hl.dsp.exec_cmd(ipc .. "lockScreen lock"))
-- TODO update in LUA
--hl.bind(mainMod .. " + T ", hl.dsp.exec_cmd( notify-send "$(/home/venus/.config/hypr/scripts/getIp.sh)")
-- hl.bind(mainMod .. " + T ", hl.dsp.exec_cmd( kdeconnect-app)
-- TODO Implement these
---- Change background opacity of terminal window
@@ -172,6 +173,24 @@ hl.bind(mainMod .. " + O ", hl.dsp.submap("open-apps"))
---- 13. Mouse binds
---- 14. submaps!
-- TODO write a timer submap that starts a timer of custom length when a key is pressed
hl.bind(mainMod .. " + T" ,function()
hl.dispatch(hl.dsp.submap("timer"))
hl.exec_cmd(ipc .. "plugin:timer toggle")
end)
hl.define_submap("timer", function ()
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"))
hl.bind("S" ,hl.dsp.exec_cmd(ipc .. "plugin:timer start 10"))
hl.bind("A" ,hl.dsp.exec_cmd(ipc .. "plugin:timer start 240"))
-- include the double escape or no?
hl.bind("catchall" ,function ()
hl.dispatch(hl.dsp.submap("reset"))
hl.dispatch(hl.dsp.exec_cmd(ipc .. "plugin:timer toggle "))
end)
end)
hl.define_submap("quick-settings", function ()
hl.bind("V" ,hl.dsp.exec_cmd("protonvpn-app & hyprctl dispatch submap vpn"))
hl.bind("S" ,hl.dsp.exec_cmd(ipc .. "settings toggle"))