local programs = require("env") local main_mod = "SUPER" hl.bind(main_mod .. " + return", hl.dsp.exec_cmd(programs.terminal)) hl.bind(main_mod .. " + Q", hl.dsp.window.close()) hl.bind(main_mod .. " + E", hl.dsp.exec_cmd(programs.file_manager)) hl.bind(main_mod .. " + V", hl.dsp.window.float({ action = "toggle" })) hl.bind(main_mod .. " + D", hl.dsp.exec_cmd(programs.menu)) hl.bind(main_mod .. " + P", hl.dsp.window.pseudo()) hl.bind(main_mod .. " + J", hl.dsp.layout("togglesplit")) hl.bind(main_mod .. " + L", hl.dsp.exec_cmd("hyprlock")) hl.bind(main_mod .. " + F", hl.dsp.window.fullscreen()) hl.bind(main_mod .. " + left", hl.dsp.focus({ direction = "left" })) hl.bind(main_mod .. " + right", hl.dsp.focus({ direction = "right" })) hl.bind(main_mod .. " + up", hl.dsp.focus({ direction = "up" })) hl.bind(main_mod .. " + down", hl.dsp.focus({ direction = "down" })) for workspace = 1, 10 do local key = workspace % 10 hl.bind(main_mod .. " + " .. key, hl.dsp.focus({ workspace = workspace })) hl.bind(main_mod .. " + SHIFT + " .. key, hl.dsp.window.move({ workspace = workspace })) end hl.bind(main_mod .. " + mouse_down", hl.dsp.focus({ workspace = "e+1" })) hl.bind(main_mod .. " + mouse_up", hl.dsp.focus({ workspace = "e-1" })) hl.bind(main_mod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true }) hl.bind(main_mod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true })