diff --git a/config/bind.lua b/config/bind.lua index 5f190cb..b9c7183 100644 --- a/config/bind.lua +++ b/config/bind.lua @@ -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")) \ No newline at end of file +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) \ No newline at end of file