95 lines
6.3 KiB
Lua
95 lines
6.3 KiB
Lua
require("programs")
|
|
local mainMod = "ALT"
|
|
--$mainMod = SUPER
|
|
hl.bind(mainMod .. " + Return", hl.dsp.exec_cmd(terminal))
|
|
hl.bind(mainMod .. " + " .. "T", hl.dsp.exec_cmd(fileManager))
|
|
hl.bind(mainMod .. " + " .. "D", hl.dsp.exec_cmd(launcher))
|
|
hl.bind("XF86LaunchB", hl.dsp.exec_cmd(launcher))
|
|
hl.bind(mainMod .. " + " .. "B", hl.dsp.exec_cmd(locker))
|
|
hl.bind(mainMod .. " + " .. "G", hl.dsp.exec_cmd(browser))
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "F", hl.dsp.exec_cmd("firefox"))
|
|
hl.bind(mainMod .. " + " .. "A", hl.dsp.exec_cmd("Telegram"))
|
|
hl.bind(mainMod .. " + " .. "C", hl.dsp.exec_cmd(clipboard, { float = true }))
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "P", hl.dsp.exec_cmd(powermenu))
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "O", hl.dsp.exec_cmd(onscreenkeyboard))
|
|
hl.bind(mainMod .. " + " .. "S", hl.dsp.exec_cmd("spotify-launcher"))
|
|
hl.bind(mainMod .. " + " .. "Y", hl.dsp.exec_cmd(calculator))
|
|
hl.bind(mainMod .. " + " .. "E", hl.dsp.exec_cmd(emojipicker))
|
|
hl.bind(mainMod .. " + " .. "Z", hl.dsp.exec_cmd(swaync_toggle))
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "R", hl.dsp.exec_cmd(swaync_reload_config))
|
|
hl.bind(mainMod .. " + " .. "U", hl.dsp.exec_cmd(sysup, { float = true }))
|
|
hl.bind(mainMod .. " + " .. "O", hl.dsp.exec_cmd(editconfig))
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "A", hl.dsp.exec_cmd("hyprwall"))
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "G", hl.dsp.exec_cmd("hyprgui"))
|
|
hl.bind(mainMod .. " + " .. "space", hl.dsp.exec_cmd(menu))
|
|
hl.bind(mainMod .. " + " .. "F", hl.dsp.window.fullscreen())
|
|
hl.bind(mainMod .. " + " .. "V", hl.dsp.window.float())
|
|
hl.bind(mainMod .. " + " .. "Q", hl.dsp.window.close())
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "E", hl.dsp.exit())
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "C", hl.dsp.exec_cmd(clipboard_screenshot))
|
|
hl.bind(mainMod .. " + " .. "P", hl.dsp.exec_cmd(file_screenshot))
|
|
hl.bind("Print", hl.dsp.exec_cmd(clipboard_screenshot))
|
|
hl.bind(mainMod .. " + " .. "equal", hl.dsp.exec_cmd(volume_raise))
|
|
hl.bind(mainMod .. " + " .. "minus", hl.dsp.exec_cmd(volume_lower))
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "M", hl.dsp.exec_cmd(volume_toggle))
|
|
hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd(volume_lower))
|
|
hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd(volume_raise))
|
|
hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd(input_volume_toggle))
|
|
hl.bind("XF86AudioMute", hl.dsp.exec_cmd(volume_toggle))
|
|
hl.bind("XF86AudioPlay", hl.dsp.exec_cmd(music_toggle))
|
|
hl.bind("XF86AudioPause", hl.dsp.exec_cmd(music_toggle))
|
|
hl.bind("XF86AudioNext", hl.dsp.exec_cmd(music_next))
|
|
hl.bind("XF86AudioPrev", hl.dsp.exec_cmd(music_prev))
|
|
hl.bind(mainMod .. " + " .. "bracketleft", hl.dsp.exec_cmd(music_prev))
|
|
hl.bind(mainMod .. " + " .. "bracketright", hl.dsp.exec_cmd(music_next))
|
|
hl.bind(mainMod .. " + " .. "backslash", hl.dsp.exec_cmd(music_toggle))
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "space", hl.dsp.exec_cmd(music_toggle))
|
|
hl.bind("Pause", hl.dsp.exec_cmd(music_toggle))
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "minus", hl.dsp.exec_cmd(brightness_lower))
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "equal", hl.dsp.exec_cmd(brightness_raise))
|
|
hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd(brightness_lower))
|
|
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd(brightness_raise))
|
|
hl.bind("XF86KbdBrightnessUp", hl.dsp.exec_cmd(keyboard_brightness_raise))
|
|
hl.bind("XF86KbdBrightnessDown", hl.dsp.exec_cmd(keyboard_brightness_lower))
|
|
hl.bind(mainMod .. " + " .. "left", hl.dsp.focus({ direction = "left" }))
|
|
hl.bind(mainMod .. " + " .. "right", hl.dsp.focus({ direction = "right" }))
|
|
hl.bind(mainMod .. " + " .. "up", hl.dsp.focus({ direction = "up" }))
|
|
hl.bind(mainMod .. " + " .. "down", hl.dsp.focus({ direction = "down" }))
|
|
hl.bind(mainMod .. " + " .. "J", hl.dsp.focus({ direction = "down" }))
|
|
hl.bind(mainMod .. " + " .. "K", hl.dsp.focus({ direction = "up" }))
|
|
hl.bind(mainMod .. " + " .. "H", hl.dsp.focus({ direction = "left" }))
|
|
hl.bind(mainMod .. " + " .. "L", hl.dsp.focus({ direction = "right" }))
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "left", hl.dsp.window.move({ direction = "left" }))
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "right", hl.dsp.window.move({ direction = "right" }))
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "up", hl.dsp.window.move({ direction = "up" }))
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "down", hl.dsp.window.move({ direction = "down" }))
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "J", hl.dsp.window.move({ direction = "down" }))
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "K", hl.dsp.window.move({ direction = "up" }))
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "H", hl.dsp.window.move({ direction = "left" }))
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "L", hl.dsp.window.move({ direction = "right" }))
|
|
for i = 1, 10 do
|
|
local key = i % 10
|
|
hl.bind(mainMod .. " + " .. key, hl.dsp.focus({ workspace = i }))
|
|
hl.bind(mainMod .. " + SHIFT + " .. key, hl.dsp.window.move({ workspace = i }))
|
|
end
|
|
hl.bind(mainMod .. " + " .. "mouse_down", hl.dsp.focus({ workspace = "e+1" }))
|
|
hl.bind(mainMod .. " + " .. "mouse_up", hl.dsp.focus({ workspace = "e-1" }))
|
|
hl.bind(mainMod .. " + CONTROL + Right", hl.dsp.focus({ workspace = "e+1" }))
|
|
hl.bind(mainMod .. " + CONTROL + Left", hl.dsp.focus({ workspace = "e-1" }))
|
|
hl.bind(mainMod .. " + " .. "mouse:272", hl.dsp.window.drag(), { mouse = true })
|
|
hl.bind(mainMod .. " + " .. "mouse:273", hl.dsp.window.resize(), { mouse = true })
|
|
hl.bind(mainMod .. " + " .. "R", hl.dsp.submap("resize"))
|
|
hl.define_submap("resize", function()
|
|
hl.bind("H", hl.dsp.window.resize({x = -30, y = 0, relative = true}))
|
|
hl.bind("L", hl.dsp.window.resize({x = 30, y = 0, relative = true}))
|
|
hl.bind("J", hl.dsp.window.resize({x = 0, y = -30, relative = true}))
|
|
hl.bind("K", hl.dsp.window.resize({x = 0, y = 30, relative = true}))
|
|
hl.bind("left", hl.dsp.window.resize({x = -30, y = 0, relative = true}))
|
|
hl.bind("right", hl.dsp.window.resize({x = 30, y = 0, relative = true}))
|
|
hl.bind("up", hl.dsp.window.resize({x = 0, y = -30, relative = true}))
|
|
hl.bind("down", hl.dsp.window.resize({x = 0, y = 30, relative = true}))
|
|
hl.bind("escape", hl.dsp.submap("reset"))
|
|
end)
|
|
hl.bind(mainMod .. " + " .. "W", hl.dsp.workspace.toggle_special("magic"))
|
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "W", hl.dsp.window.move({ workspace = "special:magic" }))
|