早期Ubuntu版本尤其是GNOME状态栏可以任意编辑时,就有可以添加各硬件工作情况的工具,而且不止一种,到了Ubuntu22.04,这些似乎都不起作用了,只能向GitHub求助,果然有大佬一直更新维护一个不错简介的指示器工具。
GitHub主页:https://github.com/fossfreedom/indicator-sysmonitor
该应用程序指示器,显示CPU温度、内存、网络速度、CPU使用率、公共IP地址和互联网连接状态。
可与 Unity、Xubuntu、Gnome-Shell + 应用程序指示器扩展以及支持 AppIndicators
的任何其他桌面环境一起使用。也适用于 Budgie-Desktop,提供运行您自己的命令并显示其输出的可能性。
安装方法:
- 1.编译方法:
适用于Ubuntu所有版本,www.ufans.top推荐!
sudo apt install python3-psutil gir1.2-appindicator3-0.1
然后从GitHub上pull安装:
git clone https://github.com/fossfreedom/indicator-sysmonitor.git
cd indicator-sysmonitor
sudo make install
删除安装目录及后台运行:
cd ..
rm -rf indicator-sysmonitor
nohup indicator-sysmonitor &
- 2.PPA安装
打开终端输入:
sudo add-apt-repository ppa:fossfreedom/indicator-sysmonitor
sudo apt-get update
sudo apt-get install indicator-sysmonitor
在程序Dash里找到indicator-sysmonitor运行。
使用方法:
可以设置开机启动,具体参数参考如下
{net} ║CPU {cpu} {cputemp} ║RD {amdgpu} NV {nvgpu} {nvgputemp} ║ MEM {mem} {swap} ║ {fs///}
除了大括号里的东西上面描述及文字均可以调整或增减,我弄了一个极简版,效果如下,供参考。
1 条评论
这个真是太赞了