--------------------- ---- KEYBINDINGS ---- --------------------- -- See https://wiki.hypr.land/Configuring/Basics/Binds/ for more hl.bind(mainMod .. " + Return", hl.dsp.exec_cmd(terminal)) hl.bind(mainMod .. " + SHIFT + X", hl.dsp.window.close()) hl.bind(mainMod .. " + SHIFT + Q", hl.dsp.exit()) hl.bind(mainMod .. " + F", hl.dsp.window.fullscreen({ mode = "fullscreen", action = "toggle" })) hl.bind(mainMod .. " + SHIFT + F", hl.dsp.window.fullscreen({ mode = "maximized", action = "toggle" })) -- bind = $mainMod SHIFT, R, togglefloating, -- Smart Float: Toggle float -> Resize to 90% -> Center hl.bind( mainMod .. "+ SHIFT + R", hl.dsp.exec_cmd([[ if hyprctl activewindow | grep -q 'floating: 0'; then W=$(hyprctl monitors -j | jq '.[] | select(.focused) | ((.width / .scale) * 0.9) | floor') H=$(hyprctl monitors -j | jq '.[] | select(.focused) | ((.height / .scale) * 0.9) | floor') hyprctl --batch "dispatch hl.dsp.window.float({action='set'}); dispatch hl.dsp.window.resize({x=${W}, y=${H}, relative=false})" hyprctl dispatch "hl.dsp.window.center()" else hyprctl dispatch "hl.dsp.window.float({action='unset'})" fi ]]), { description = "Smart Float" } ) ------------------ -- Aurora Shell ----------------- hl.bind(mainMod .. " + c", hl.dsp.exec_cmd("qs -c aurora ipc call shell toggle")) hl.bind(mainMod .. " + b", hl.dsp.exec_cmd("qs -c aurora ipc call shell bar")) hl.bind(mainMod .. " + SHIFT + b", hl.dsp.exec_cmd("systemctl --user restart aurora-shell")) hl.bind(mainMod .. " + R", hl.dsp.exec_cmd(menu)) -- bind = $mainMod SHIFT, P, pseudo, # dwindle hl.bind(mainMod .. " + Tab", hl.dsp.window.cycle_next({ next = false }), { repeating = true }) hl.bind(mainMod .. " + SHIFT + Tab", hl.dsp.exec_cmd("qs -c aurora ipc call shell overview"), { description = "workspace overview" }) hl.bind(mainMod .. " + grave", hl.dsp.exec_cmd("qs -c aurora ipc call shell chars"), { description = "glyph picker" }) hl.bind(mainMod .. " + escape", hl.dsp.exec_cmd("qs -c aurora ipc call shell power")) hl.bind(mainMod .. " + I", hl.dsp.exec_cmd("qs -c aurora ipc call shell settings ''"), { description = "aurora settings" }) -- Applications hl.bind(mainMod .. " + W", hl.dsp.exec_cmd(browser)) hl.bind("PRINT", hl.dsp.exec_cmd("qs -c aurora ipc call shell shot region"), { description = "screenshot" }) hl.bind(mainMod .. " + SHIFT + P", hl.dsp.exec_cmd("qs -c aurora ipc call shell shot region"), { description = "screenshot" }) hl.bind("SHIFT + PRINT", hl.dsp.exec_cmd("ocr"), { description = "ocr a region" }) hl.bind(mainMod .. " + SHIFT + O", hl.dsp.exec_cmd("ocr"), { description = "ocr a region" }) -- Music Controls hl.bind(mainMod .. " + m", hl.dsp.exec_cmd(terminal .. " -e zsh -i -c \"rmptui\"")) hl.bind(mainMod .. " + SHIFT + m", hl.dsp.exec_cmd("madd