Skip to content

Instantly share code, notes, and snippets.

@yaomtc
Created October 2, 2023 04:19
Show Gist options
  • Save yaomtc/aa20ba5afd7d7e5688684c95fed0bbc2 to your computer and use it in GitHub Desktop.
Save yaomtc/aa20ba5afd7d7e5688684c95fed0bbc2 to your computer and use it in GitHub Desktop.
Toggle muting of Final Fantasy XIV on Linux with WirePlumber (PipeWire)
#!/bin/bash
id=$(wpctl status | grep "XIV" | sed -n '2,2p' | sed 's/^ *//' | sed 's/\. FINAL\ FANTASY\ XIV//')
wpctl set-mute $id toggle
@yaomtc
Copy link
Author

yaomtc commented Oct 2, 2023

I have a global keyboard shortcut set to launch this script. Since I use Gamescope I can't use Plasma's taskbar to mute the game and FFXIV can't detect if the window is not active. Also, the game's built-in mute toggle /mastervolume doesn't always work (such as in cutscenes). This is my workaround, which is useful if I'm watching videos while the game is running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment