asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.22k stars 1.24k forks source link

Added XF86 media keys for Linux #863

Open calvindo95 opened 3 months ago

calvindo95 commented 3 months ago

I noticed that media keys were missing for Linux (X11) for a project of mine. I've added the following keyboard_keys missing in Linux: volumeup, volumedown, volumemute, playpause, nexttrack, prevtrack

There are probably several other special keys that are missing for Linux, but for now media keys are a good starting point for adding XF86 compatibility.

calvindo95 commented 3 months ago

Just found https://github.com/asweigart/pyautogui/pull/577 which is a similar enhancement. It would be much appreciated if either fix is approve/merged, so I don't have to build and install a custom version of pyautogui