Conversion complete!

This commit is contained in:
2026-05-11 22:56:00 +02:00
parent 9816836f6e
commit 7329ef4b4b
12 changed files with 177 additions and 485 deletions
+22 -42
View File
@@ -1,47 +1,27 @@
hl.bind("SUPER + mouse:272", hl.dsp.window.drag(), { mouse = true })
hl.bind("SUPER + mouse:273", hl.dsp.window.resize(), { mouse = true })
hl.bind("SUPER + RETURN", hl.dsp.exec_cmd("ghostty"))
hl.bind("SUPER + Q", hl.dsp.killactive())
hl.bind("SUPER + Q", hl.dsp.window.close())
hl.bind("SUPER + M", hl.dsp.exit())
hl.bind("SUPER + RETURN", hl.dsp.exec_cmd("ghostty"))
hl.bind("SUPER + E", hl.dsp.exec_cmd("dolphin"))
hl.bind("SUPER + S", hl.dsp.togglefloating())
hl.bind("SUPER + P", hl.dsp.pseudo())
hl.bind("SUPER + B", hl.dsp.exec_cmd("firefox"))
hl.bind("SUPER + H", hl.dsp.movefocus("l"))
hl.bind("SUPER + L", hl.dsp.movefocus("r"))
hl.bind("SUPER + K", hl.dsp.movefocus("u"))
hl.bind("SUPER + J", hl.dsp.movefocus("d"))
hl.bind("SUPER + H", hl.dsp.focus({ direction = "l" }))
hl.bind("SUPER + L", hl.dsp.focus({ direction = "r" }))
hl.bind("SUPER + K", hl.dsp.focus({ direction = "u" }))
hl.bind("SUPER + J", hl.dsp.focus({ direction = "d" }))
hl.bind("SUPER + SHIFT + L", hl.dsp.window.resize({ x = 50, y = 0, relative = true }), { repeating = true })
hl.bind("SUPER + SHIFT + H", hl.dsp.window.resize({ x = -50, y = 0, relative = true }), { repeating = true })
hl.bind("SUPER + SHIFT + K", hl.dsp.window.resize({ x = 0, y = -50, relative = true }), { repeating = true })
hl.bind("SUPER + SHIFT + J", hl.dsp.window.resize({ x = 0, y = 50, relative = true }), { repeating = true })
hl.bind("SUPER + 1", hl.dsp.workspace("1"))
hl.bind("SUPER + 2", hl.dsp.workspace("2"))
hl.bind("SUPER + 3", hl.dsp.workspace("3"))
hl.bind("SUPER + 4", hl.dsp.workspace("4"))
hl.bind("SUPER + 5", hl.dsp.workspace("5"))
hl.bind("SUPER + 6", hl.dsp.workspace("6"))
hl.bind("SUPER + 7", hl.dsp.workspace("7"))
hl.bind("SUPER + 8", hl.dsp.workspace("8"))
hl.bind("SUPER + 9", hl.dsp.workspace("9"))
hl.bind("SUPER + 0", hl.dsp.workspace("10"))
hl.bind("ALT + 1", hl.dsp.movetoworkspace("1"))
hl.bind("ALT + 2", hl.dsp.movetoworkspace("2"))
hl.bind("ALT + 3", hl.dsp.movetoworkspace("3"))
hl.bind("ALT + 4", hl.dsp.movetoworkspace("4"))
hl.bind("ALT + 5", hl.dsp.movetoworkspace("5"))
hl.bind("ALT + 6", hl.dsp.movetoworkspace("6"))
hl.bind("ALT + 7", hl.dsp.movetoworkspace("7"))
hl.bind("ALT + 8", hl.dsp.movetoworkspace("8"))
hl.bind("ALT + 9", hl.dsp.movetoworkspace("9"))
hl.bind("ALT + 0", hl.dsp.movetoworkspace("10"))
hl.bind("SUPER + mouse_down", hl.dsp.workspace("e+1"))
hl.bind("SUPER + mouse_up", hl.dsp.workspace("e-1"))
hl.bind("SUPER + G", hl.dsp.togglegroup())
hl.bind("SUPER + TAB", hl.dsp.changegroupactive())
for i = 1, 10 do
local key = i % 10 -- 10 maps to key 0
hl.bind("SUPER" .. " + " .. key, hl.dsp.focus({ workspace = i }))
hl.bind("ALT" .. " + " .. key, hl.dsp.window.move({ workspace = i, follow = true }))
-- hl.bind("SUPER" .. " + " .. key, hl.dsp.window.move({ workspace = i, follow = false }))
end
hl.bind("SUPER + F", hl.dsp.window.fullscreen())
hl.bind("SUPER + D", hl.dsp.exec_cmd("fuzzel"))
@@ -60,18 +40,18 @@ hl.bind(
hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"),
{ repeating = true, locked = true }
)
hl.bind("F14", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"), { repeating = true, locked = true })
hl.bind("F15", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"), { repeating = true, locked = true })
hl.bind("F17", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 5%+"), { repeating = true, locked = true })
hl.bind("F16", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 5%-"), { repeating = true, locked = true })
hl.bind("code:192", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"), { repeating = true, locked = true })
hl.bind("code:193", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"), { repeating = true, locked = true })
hl.bind("code:194", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 5%-"), { repeating = true, locked = true })
hl.bind("code:195", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 5%+"), { repeating = true, locked = true })
hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true })
hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), { locked = true })
hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next"), { locked = true })
hl.bind("PRINT", hl.dsp.exec_cmd("zshell:screenshotFreeze"))
hl.bind("SUPER + R", hl.dsp.exec_cmd("zshell:toggle-launcher"))
hl.bind("SUPER + A", hl.dsp.exec_cmd("zshell:toggle-nc"))
hl.bind("SUPER + V", hl.dsp.exec_cmd("zshell:toggle-drawing"))
hl.bind("SUPER + F1", hl.dsp.exec_cmd("zshell:lock"))
hl.bind("SUPER + F2", hl.dsp.exec_cmd("zshell:toggle-settings"))
hl.bind("PRINT", hl.dsp.global("zshell:screenshotFreeze"))
hl.bind("SUPER + R", hl.dsp.global("zshell:toggle-launcher"))
hl.bind("SUPER + A", hl.dsp.global("zshell:toggle-nc"))
hl.bind("SUPER + V", hl.dsp.global("zshell:toggle-drawing"))
hl.bind("SUPER + F1", hl.dsp.global("zshell:lock"))
hl.bind("SUPER + F2", hl.dsp.global("zshell:toggle-settings"))