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.
This commit is contained in:
parent
6cdc25153d
commit
87fe1717aa
2 changed files with 15 additions and 0 deletions
2
srcpkgs/pasystray-git/files/pasystray-cereus
Executable file
2
srcpkgs/pasystray-git/files/pasystray-cereus
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
pasystray --notify={sink,source} &
|
13
srcpkgs/pasystray-git/patches/pipewire-launcher-cereus.patch
Normal file
13
srcpkgs/pasystray-git/patches/pipewire-launcher-cereus.patch
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue