Esta es una herramienta CLI simple para mostrar elementos en la bandeja del sistema y activarlos.
Hay dos comandos en este paquete: tray-show y tray-activate .
$ tray-show -h
Show items in the system tray
Usage:
tray-show [OPTION...]
-h, --help Print help and exit
-v, --verbose Show full info about each item
$ tray-activate -h
Activate items from the system tray
Usage:
tray-activate [OPTION...]
-h, --help Print help and exit
-i, --id arg Find items by id
-t, --title arg Find items by title
-x arg X coord (default: 0)
-y arg Y coord (default: 0)
tray-show imprime todos los artículos en la bandeja del sistema. Por ejemplo:
$ tray-show -v
Category: ApplicationStatus
Title: TelegramDesktop
Id: TelegramDesktop
Status: Active
IconName:
Category: ApplicationStatus
Title: Fleep
Id: Fleep
Status: Active
IconName:
tray-activate activa todos los elementos que coinciden con la identificación o el título especificados. Tenga en cuenta que se debe especificar la identificación o el título (pero no ambos). -x y -y args son las coordenadas pasadas para activar la llamada. El elemento de la bandeja del sistema debe considerarlos para mostrar submenús u otras cosas (pero a menudo son ignoradas por aplicaciones).
Para obtener más información sobre SystemTrayItems, consulte: statusnotifierItem.
Esta herramienta depende de systemd-libs , sdbus-cpp y fmt . También hay dependencias de submódulos: cxxopts y magic_enum , pero generalmente no debes preocuparte por ellas, ya que se incluyen como submódulos en este repositorio.
Consulte el repositorio y use makepkg:
git checkout https://github.com/andrewerf/tray-control.git
cd tray-control
makepkg -siEspero agregar esta herramienta a AUR en el futuro cercano.
Consulte el repositorio y la construcción con cmake + make:
git checkout https://github.com/andrewerf/tray-control.git
cd tray-control
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j8
cmake --install . Esto (de forma predeterminada) instalará dos archivos: /usr/local/bin/tray-show y /usr/local/bin/tray-activate . Use CMAKE_INSTALL_PREFIX para cambiar la carpeta de instalación.