added window rules consolidated variables and gt vicinae launcher

This commit is contained in:
venus
2026-05-31 02:47:45 -05:00
parent e42e1cc875
commit 16d2ca17b1
9 changed files with 155 additions and 410 deletions

View File

@@ -88,13 +88,20 @@ hl.bind(mainMod .. " + SHIFT + S ", hl.dsp.window.move({ workspace = "special:m
hl.bind(mainMod .. " + SHIFT + B ", hl.dsp.window.move({ workspace = "special:book" }))
-- TODO Rework this with lua
hl.bind(mainMod .. " + D ", hl.dsp.exec_cmd("vesktop"))
hl.bind(mainMod .. " + E ", hl.dsp.exec_cmd(email))
hl.bind(mainMod .. " + G ", hl.dsp.exec_cmd("steam -forcedesktopscaling 0.5"))
hl.bind(mainMod .. " + D ", hl.dsp.workspace.toggle_special("discord "))
hl.bind(mainMod .. " + E ", hl.dsp.workspace.toggle_special("email "))
hl.bind(mainMod .. " + G ", hl.dsp.workspace.toggle_special("gaming "))
hl.bind(mainMod .. " + N ", hl.dsp.workspace.toggle_special("notes "))
hl.bind(mainMod .. " + D " ,hl.dsp.workspace.toggle_special("discord "))
hl.bind(mainMod .. " + E " ,function ()
hl.dispatch(hl.dsp.workspace.toggle_special("email"))
hl.exec_cmd(email)
end)
hl.bind(mainMod .. " + G " ,function ()
hl.dispatch(hl.dsp.workspace.toggle_special("gaming"))
hl.exec_cmd("steam -forcedesktopscaling 0.5")
end)
hl.bind(mainMod .. " + N " ,function ()
hl.dispatch(hl.dsp.workspace.toggle_special("notes"))
-- TODO dont run if obsidian alr running
-- hl.exec_cmd(notes)
end)
-- 8. Move/resize windows with mainMod + LMB/RMB and dragging
hl.bind(mainMod .. " + mouse:272 ", hl.dsp.window.drag(), {mouse = true})
@@ -118,7 +125,7 @@ hl.bind(mainMod .. " + SPACE " ,hl.dsp.exec_cmd("playerctl play-pause"))
---- 10. Application launching
-- hl.bind(mainMod, hl.dsp.exec_cmd(menu))
hl.bind(mainMod .. " + SUPER_L", hl.dsp.exec_cmd(launcher .. " toggle"), { release = true })
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 "))
@@ -260,5 +267,8 @@ end)
--hl.define_submap("reset
---- 13. Misc tools.
--- 14. Gestures
hl.gesture({ fingers = 3, direction = "horizontal", action = "workspace" })
-- hl.gesture({ fingers = 2, direction = "pinch", action = "cursor_zoom", zoom_level = 2, mode = "mult"})
--hl.bind(ALT, SPACE, hl.dsp.exec_cmd( $menu)