Created
October 2, 2023 04:19
-
-
Save yaomtc/aa20ba5afd7d7e5688684c95fed0bbc2 to your computer and use it in GitHub Desktop.
Toggle muting of Final Fantasy XIV on Linux with WirePlumber (PipeWire)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
id=$(wpctl status | grep "XIV" | sed -n '2,2p' | sed 's/^ *//' | sed 's/\. FINAL\ FANTASY\ XIV//') | |
wpctl set-mute $id toggle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.