refactor(hypr): migrate configuration to lua

This commit is contained in:
2026-08-11 18:47:19 -04:00
parent d4663ad9cd
commit a1a9081a2a
14 changed files with 169 additions and 164 deletions
+18
View File
@@ -0,0 +1,18 @@
local main_mod = "SUPER"
hl.on("hyprland.start", function()
hl.exec_cmd("light -N 1")
end)
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("~/bin/system/backlight-ctl.sh -i"))
hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("~/bin/system/backlight-ctl.sh -d"))
hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("amixer set Master 3%+"))
hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("amixer set Master 3%-"))
hl.bind("XF86AudioMute", hl.dsp.exec_cmd("amixer set Master toggle"))
hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"))
hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"))
hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next"))
hl.bind(main_mod .. " + escape", hl.dsp.exec_cmd("swaylock"))