|
|
|
|
@@ -9,9 +9,9 @@ local custom = require("custom-functions")
|
|
|
|
|
|
|
|
|
|
-- 1. Basic Binds
|
|
|
|
|
hl.bind(mainMod .. " + Q " , hl.dsp.exec_cmd(terminal))
|
|
|
|
|
hl.bind(mainMod .. " + SHIFT + Q " , hl.dsp.exec_cmd(terminal .. " ssh -v sol"))
|
|
|
|
|
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))
|
|
|
|
|
|
|
|
|
|
-- Workspace movement and tiling rule
|
|
|
|
|
hl.bind(mainMod .. "+ P" ,hl.dsp.window.float({ action = "toggle" }))
|
|
|
|
|
@@ -40,10 +40,12 @@ hl.bind(mainMod .. " + SHIFT + J" , hl.dsp.window.move( { direction = "down" }
|
|
|
|
|
-- 2.2 Workspace and monitor keys
|
|
|
|
|
hl.bind(mainMod .. " + mouse_up" , hl.dsp.focus ({ workspace = "m-1"}))
|
|
|
|
|
hl.bind(mainMod .. " + mouse_down" , hl.dsp.focus ({ workspace = "m+1"}))
|
|
|
|
|
hl.bind(mainMod .. " + SHIFT + mouse_up " , hl.dsp.focus ({ workspace = "e-1"}))
|
|
|
|
|
hl.bind(mainMod .. " + SHIFT + mouse_down " , hl.dsp.focus ({ workspace = "e+1"}))
|
|
|
|
|
hl.bind(mainMod .. " + SHIFT + mouse_up " , hl.dsp.focus ({ workspace = "e+1"}))
|
|
|
|
|
hl.bind(mainMod .. " + SHIFT + mouse_down " , hl.dsp.focus ({ workspace = "e-1"}))
|
|
|
|
|
hl.bind(mainMod .. " + CTRL + right" , hl.dsp.focus ({ workspace = "m+1"}))
|
|
|
|
|
hl.bind(mainMod .. " + CTRL + left" , hl.dsp.focus ({ workspace = "m-1"}))
|
|
|
|
|
hl.bind(mainMod .. " + CTRL + l" , hl.dsp.focus ({ workspace = "m+1"}))
|
|
|
|
|
hl.bind(mainMod .. " + CTRL + h" , hl.dsp.focus ({ workspace = "m-1"}))
|
|
|
|
|
hl.bind(mainMod .. " + TAB " , hl.dsp.focus ({ monitor = "-1"}))
|
|
|
|
|
hl.bind(mainMod .. " + SHIFT + TAB " , hl.dsp.focus ({ monitor = "+1"}))
|
|
|
|
|
|
|
|
|
|
@@ -79,13 +81,15 @@ hl.bind(mainMod .. " + SHIFT + 0 ", hl.dsp.window.move({workspace = 10}))
|
|
|
|
|
|
|
|
|
|
---- 6. special workspace (scratchpad)
|
|
|
|
|
hl.bind(mainMod .. " + S " , hl.dsp.workspace.toggle_special("magic" ))
|
|
|
|
|
hl.bind(mainMod .. " + B ", hl.dsp.workspace.toggle_special("magic2" ))
|
|
|
|
|
hl.bind(mainMod .. " + X ", hl.dsp.workspace.toggle_special("phantom" ))
|
|
|
|
|
hl.bind(mainMod .. " + B " , hl.dsp.workspace.toggle_special("book" ))
|
|
|
|
|
hl.bind(mainMod .. " + X " , hl.dsp.workspace.toggle_special("phantom" ))
|
|
|
|
|
hl.bind(mainMod .. "+ SHIFT + A" , hl.dsp.workspace.toggle_special("gaming" ))
|
|
|
|
|
hl.bind(mainMod .. " + A " , hl.dsp.workspace.toggle_special("notes" ))
|
|
|
|
|
|
|
|
|
|
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" }))
|
|
|
|
|
hl.bind(mainMod .. " + SHIFT + N " , hl.dsp.window.move({ workspace = "special:notes" }))
|
|
|
|
|
|
|
|
|
|
hl.bind(mainMod .. " + D " ,function ()
|
|
|
|
|
hl.dispatch(hl.dsp.workspace.toggle_special("vesktop"))
|
|
|
|
|
@@ -129,12 +133,16 @@ hl.bind(mainMod .. " + SPACE " ,hl.dsp.exec_cmd("playerctl play-pause"))
|
|
|
|
|
---- 10. Application launching
|
|
|
|
|
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 .. " + SHIFT + F " ,hl.dsp.exec_cmd("firefox -P popup --no-remote --name browser-popup"))
|
|
|
|
|
|
|
|
|
|
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(mainMod .. " + W ", 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 , { tag = "popup" }))
|
|
|
|
|
hl.bind(mainMod .. " + W " , hl.dsp.exec_cmd(terminal , { tag = "popup" }))
|
|
|
|
|
hl.bind(mainMod .. " + SHIFT + W " , hl.dsp.exec_cmd(terminal .. " ssh -v sol" , { tag = "popup" }))
|
|
|
|
|
hl.bind(mainMod .. " + CTRL + W " , hl.dsp.exec_cmd(terminal .. " ssh root@galaxy", { tag = "popup" }))
|
|
|
|
|
|
|
|
|
|
hl.bind(mainMod .. " + escape" ,hl.dsp.exec_cmd("kitty btop" ,{float = true, border_size = 2, size = {"(monitor_w * 0.9)", "(monitor_h * 0.9)"}}))
|
|
|
|
|
hl.bind("CTRL + SHIFT + ESCAPE" ,hl.dsp.exec_cmd("kitty btop" ,{float = true, border_size = 2, size = {"(monitor_w * 0.9)", "(monitor_h * 0.9)"}}))
|
|
|
|
|
@@ -146,11 +154,11 @@ 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"))
|
|
|
|
|
hl.bind(mainMod .. " + CTRL + SHIFT + L " , hl.dsp.exec_cmd(ipc .. "lockScreen lock"))
|
|
|
|
|
-- Move window to monitor darkspot
|
|
|
|
|
hl.bind(mainMod .. " + ALT + H" , custom.MoveToDarkSpot)
|
|
|
|
|
-- hl.monitor({ output = "DP-2", disabled = false })
|
|
|
|
|
hl.bind(mainMod .. "+ grave" ,custom.ToggleOddessyConnection)
|
|
|
|
|
hl.bind(mainMod .. "+ Z" ,custom.RunDevelopementCode)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- TODO Implement these
|
|
|
|
|
@@ -164,6 +172,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("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"))
|
|
|
|
|
|