Each brightness key ran omarchy-brightness-display: resolving the focused monitor and backlight device, checking for an Apple display, reading, writing and reading back through brightnessctl, then omarchy-osd over a qs IPC client. That is 64-133ms from keypress to OSD depending on load, on keys that repeat while held. The brightness up and down keys now dispatch global shortcuts. On an internal panel the shell reads the level from sysfs, steps it by the script's rules, writes it with one brightnessctl, and shows the OSD from the level read back. A press overlapping one still being applied is dropped, as the script's flock drops it. External and Apple displays fall back to the script, which drives them over DDC or their own helper. The absolute and precise brightness keys still run the script. Across 24 steps from eight starting levels the shell and the script land on identical levels, and keypress to OSD drops to ~31ms. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
# Hyprland global shortcuts the Omarchy shell registers, one per line: a menu
|
|
# route to toggle, a panel plugin to toggle, a volume or brightness key, or an
|
|
# argument-free IPC call as target.method. A binding written as o.bind(keys,
|
|
# description, { menu = "theme" }), { panel = "omarchy.emojis" },
|
|
# { audio = "raise" }, { brightness = "raise" } or { ipc = "media.next" }
|
|
# dispatches the matching shortcut straight to the shell, with no process to
|
|
# spawn per keypress. Anything missing here still binds, through the
|
|
# omarchy-menu, omarchy-shell, omarchy-audio-output-volume or
|
|
# omarchy-brightness-display command instead.
|
|
menu root
|
|
menu apps
|
|
menu capture
|
|
menu toggle
|
|
menu hardware
|
|
menu system
|
|
menu background
|
|
menu theme
|
|
menu share
|
|
menu reminder-set
|
|
panel omarchy.clipboard
|
|
panel omarchy.emojis
|
|
panel omarchy.audio
|
|
panel omarchy.bluetooth
|
|
panel omarchy.monitor
|
|
panel omarchy.clock
|
|
panel omarchy.network
|
|
panel omarchy.power
|
|
audio raise
|
|
audio lower
|
|
audio mute-toggle
|
|
brightness raise
|
|
brightness lower
|
|
ipc media.playPause
|
|
ipc media.next
|
|
ipc media.previous
|
|
ipc notifications.dismissOne
|
|
ipc notifications.dismissAll
|
|
ipc notifications.invokeLast
|
|
ipc notifications.showHistory
|