feat: added brightness control shortcuts

This commit is contained in:
Honney committed 2026-10-21 19:12:28 +02:00
1 parent 693802ff26
commit 4b2a2b23e1
1 file changed
+12 -1
+12 -1
View File
@@ -81,6 +81,10 @@ hl.bind("ALT+XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUD
hl.bind("ALT+XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"))
hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"))
-- Brightness Control
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("~/.config/hypr/scripts/brightness.sh up"))
hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("~/.config/hypr/scripts/brightness.sh down"))
hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause || playerctl play-pause"))
hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next"))
hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"))
@@ -122,4 +126,11 @@ hl.bind("SUPER + SHIFT + W", hl.dsp.global("quickshell:Wallpaper"))
hl.bind("SUPER + SHIFT + J", hl.dsp.global("quickshell:JLearner"))
hl.bind("SUPER + SHIFT + L", hl.dsp.global("quickshell:WLogout"))
hl.bind("SUPER + SHIFT + R", hl.dsp.global("quickshell:QsReload"))
hl.bind("SUPER + SHIFT + N", hl.dsp.global("quickshell:NotificationHistory"))
hl.bind("SUPER + SHIFT + N", hl.dsp.global("quickshell:NotificationHistory"))
-- DPMS Screenturnoff
hl.bind("SUPER + SHIFT + CTRL + L", function()
hl.timer(function()
hl.dispatch(hl.dsp.dpms({ action = "toggle" }))
end, { timeout = 500, type = "oneshot" })
end)