Skip to content

Instantly share code, notes, and snippets.

@giner
Last active November 30, 2021 03:46
Show Gist options
  • Save giner/113c5c0d9eb28e64ab59bfb5ecabec2e to your computer and use it in GitHub Desktop.
Save giner/113c5c0d9eb28e64ab59bfb5ecabec2e to your computer and use it in GitHub Desktop.
Remap Play button to Mic Mute (primarily for Bluetooth Headsets)
#!/bin/sh
# NOTE: This change won't persist if package xkb-data is reinstaled or updated
sudo sed -i '/key <I208>/s/\bXF86AudioPlay\b/XF86AudioMicMute/' /usr/share/X11/xkb/symbols/inet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment