tray control
1.0.0
這是一個簡單的CLI工具,可在系統托盤中顯示項目並激活它們。
此軟件包中有兩個命令: tray-show和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打印系統托盤中的所有項目。例如:
$ tray-show -v
Category: ApplicationStatus
Title: TelegramDesktop
Id: TelegramDesktop
Status: Active
IconName:
Category: ApplicationStatus
Title: Fleep
Id: Fleep
Status: Active
IconName:
tray-activate激活與指定的ID或標題匹配的所有項目。請注意,應該指定ID或標題(但兩者都不是兩者)。 -x和-y args是傳遞以激活調用的坐標。系統托盤項目應考慮顯示子菜單或其他內容(但通常會被應用程序忽略)。
有關SystemTrayItems的更多信息,請參見:statusnotifierItem。
該工具取決於systemd-libs , sdbus-cpp和fmt 。還存在子模塊依賴性: cxxopts和magic_enum ,但您通常不必擔心它們,因為它們被包含在此存儲庫中。
查看存儲庫並使用makepkg:
git checkout https://github.com/andrewerf/tray-control.git
cd tray-control
makepkg -si我希望我將在不久的將來將此工具添加到AUR中。
結帳存儲庫並使用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 .這將(默認情況下)安裝兩個文件: /usr/local/bin/tray-show和/usr/local/bin/tray-activate 。使用CMAKE_INSTALL_PREFIX更改安裝文件夾。