From 87fe1717aad400c4f263e0001c7873d2a09010c7 Mon Sep 17 00:00:00 2001 From: KF-Art Date: Fri, 26 Aug 2022 11:08:11 -0400 Subject: [PATCH] Correct desktop launcher for pasystray-git As we are using pasystray as a daemon to notify volume changes, we decided to patch the desktop launcher and add a script which will run pasystray with this options enabled. Please note that the script was necessary because --notify=all flag in PipeWire gives a lot of notifications (even when pausing a video), and we only needed source and sink changes. To do this we use the flag --notify={sink,source}, which seems to not work on a desktop launcher, but in a script. When using PulseAudio, the --notify=all flag would be enough. --- srcpkgs/pasystray-git/files/pasystray-cereus | 2 ++ .../patches/pipewire-launcher-cereus.patch | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100755 srcpkgs/pasystray-git/files/pasystray-cereus create mode 100644 srcpkgs/pasystray-git/patches/pipewire-launcher-cereus.patch diff --git a/srcpkgs/pasystray-git/files/pasystray-cereus b/srcpkgs/pasystray-git/files/pasystray-cereus new file mode 100755 index 0000000..9c65418 --- /dev/null +++ b/srcpkgs/pasystray-git/files/pasystray-cereus @@ -0,0 +1,2 @@ + #!/bin/bash +pasystray --notify={sink,source} & diff --git a/srcpkgs/pasystray-git/patches/pipewire-launcher-cereus.patch b/srcpkgs/pasystray-git/patches/pipewire-launcher-cereus.patch new file mode 100644 index 0000000..8caf108 --- /dev/null +++ b/srcpkgs/pasystray-git/patches/pipewire-launcher-cereus.patch @@ -0,0 +1,13 @@ +diff --git a/data/pasystray.desktop b/data/pasystray.desktop +index c48e124..61d3afb 100644 +--- a/data/pasystray.desktop ++++ b/data/pasystray.desktop +@@ -3,7 +3,7 @@ Version=1.0 + Name=PulseAudio System Tray + GenericName= + Comment=An Applet for PulseAudio +-Exec=pasystray ++Exec=pasystray-cereus + Icon=pasystray + StartupNotify=true + Type=Application