feat: multi-server support (menu switch + persisted selection)#3
Open
Epichorse wants to merge 1 commit intoZeyuuuChen:mainfrom
Open
feat: multi-server support (menu switch + persisted selection)#3Epichorse wants to merge 1 commit intoZeyuuuChen:mainfrom
Epichorse wants to merge 1 commit intoZeyuuuChen:mainfrom
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2
What
Adds multi-server support for RemoteGPU-Bar:
Why
Issue #2 requests multi-server support. Instead of SSH-ing all servers every refresh (which may create N SSH connections per interval), this PR refreshes only the currently selected server to keep it lightweight.
How to use
gpu_monitor_multi.1m.shinto SwiftBar plugins folderNotes
新增
为 RemoteGPU-Bar 增加多服务器支持:
原因
#2 提到希望支持多服务器。为了保持插件轻量并避免每次刷新同时对 N 台服务器发起 SSH(可能带来额外负载/延迟),当前实现采用“按需查看”的方式:每次刷新仅获取当前选中的服务器信息;需要查看其他服务器时在菜单中切换即可。
使用方法
gpu_monitor_multi.1m.sh放入 SwiftBar 插件目录并赋予可执行权限兼容性与说明
gpu_monitor.1m.sh不变,新脚本作为多服务器版本提供