Where to get list of valid extra key names supported by Hyprland in Lua config?

SUPPORT

Before this use to work fine:

# Brightness
bindd = , XF86MonBrightnessUp, Brightness Up, exec, ~/.config/hypr/scripts/Brightness.sh --inc
bindd = , XF86MonBrightnessDown, Brightness Down, exec, ~/.config/hypr/scripts/Brightness.sh --dec
bindd = , SCROLL_LOCK, Brightness Down Alt, exec, ~/.config/hypr/scripts/Brightness.sh --dec
bindd = , PAUSE, Brightness Up Alt, exec, ~/.config/hypr/scripts/Brightness.sh --inc
bindd = CTRL , xf86audioraisevolume, Brightness Up Ctrl, exec, ~/.config/hypr/scripts/Brightness.sh --inc
bindd = CTRL , xf86audiolowervolume, Brightness Down Ctrl, exec, ~/.config/hypr/scripts/Brightness.sh --dec

# Media
bindd = , xf86AudioPlayPause, Play Pause, exec, $Media --pause
bindd = , xf86AudioPause, Pause, exec, $Media --pause
bindd = , xf86AudioPlay, Play, exec, $Media --pause
bindd = , xf86AudioNext, Next Track, exec, $Media --nxt
bindd = , xf86AudioPrev, Previous Track, exec, $Media --prv
bindd = , xf86audiostop, Stop Media, exec, $Media --stop

Now in Lua:

-- Brightness
hl.bind("XF86MonBrightnessUp",              hl.dsp.exec_cmd(brightness .. " --inc"), { description = "Brightness Up" })
hl.bind("XF86MonBrightnessDown",            hl.dsp.exec_cmd(brightness .. " --dec"), { description = "Brightness Down" })
hl.bind("SCROLL_LOCK",                      hl.dsp.exec_cmd(brightness .. " --dec"), { description = "Brightness Down Alt" })
hl.bind("PAUSE",                            hl.dsp.exec_cmd(brightness .. " --inc"), { description = "Brightness Up Alt" })
hl.bind("CTRL + xf86audioraisevolume",      hl.dsp.exec_cmd(brightness .. " --inc"), { description = "Brightness Up Ctrl" })
hl.bind("CTRL + xf86audiolowervolume",      hl.dsp.exec_cmd(brightness .. " --dec"), { description = "Brightness Down Ctrl" })

-- Media
hl.bind("xf86AudioPlayPause", hl.dsp.exec_cmd(Media .. " --pause"), { description = "Play/Pause" })
hl.bind("xf86AudioPause",     hl.dsp.exec_cmd(Media .. " --pause"), { description = "Pause" })
hl.bind("xf86AudioPlay",      hl.dsp.exec_cmd(Media .. " --pause"), { description = "Play" })
hl.bind("xf86AudioNext",      hl.dsp.exec_cmd(Media .. " --nxt"),   { description = "Next Track" })
hl.bind("xf86AudioPrev",      hl.dsp.exec_cmd(Media .. " --prv"),   { description = "Previous Track" })
hl.bind("xf86audiostop",      hl.dsp.exec_cmd(Media .. " --stop"),  { description = "Stop Media" })

I get error on xf86AudioPlayPause saying its not valid symbol..

Posted May 12, 2026, 3:01 PM UTC

34
Loading comments…