GithubHelp home page GithubHelp logo

elswerky / dde-sys-monitor-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from q77190858/dde-sys-monitor-plugin

0.0 1.0 0.0 1.19 MB

dde-dock system monitor plugin

CMake 20.77% Shell 0.52% C++ 78.71%

dde-sys-monitor-plugin's Introduction

dde-sys-monitor-plugin

deepin系统监控dock插件,可监控CPU使用率、内存使用率、swap使用率、上传下载总量和实时网速

参考项目

CMDU_DDE_DOCK

感谢大神@sonichy

图片展示

alt alt alt

上三图分别是高效模式下

  1. 全显示

  2. 只显示CPU内存

  3. 只显示网速

alt alt

上两图分别是时尚模式下

  1. 只显示CPU内存

  2. 只显示网速

alt alt

右键菜单中有设置选项,可以设置各个模式下的显示内容

下载编译好的so

libsys_monitor.so

deepin20 beta测试可用

安装命令:

sudo cp libsys_monitor.so /usr/lib/dde-dock/plugins/
pkill dde-dock
dde-dock

手动编译加安装:

./build.sh

编译教程见官方开发文档

编译另外还需要安装如下依赖(吐槽一下官方的开发文档讲的环境配置不全):

sudo apt install dde-dock-dev 
sudo apt install qtbase5-dev-tools
sudo apt install libdtkwidget-dev
#使用qtcreator集成环境可以直接设计ui界面,目前qt版本是5.7.1
sudo apt install qtcreator
#使用qtcreator打开cmake工程要先安装cmake
sudo apt install cmake

有问题欢迎回帖反馈!开发的心得体会参见我的博客 http://blog.mxslly.com/archives/95.html

20190617 22:37更新:修复上传下载一致的bug,下载地址同上

20190619 12:07更新:缩减宽度,小气泡文字对齐,编译脚本优化,下载地址同上

20190627 16:04更新:修复时尚模式显示不全问题,现在时尚模式只显示网速

20190830 03:14更新:缩减1个字符宽度,现在最低单位为KB,不显示B

20191211 10:09更新:导入项目到qtcreator,添加设置功能,可设置显示内容

20200214 21:09更新:针对高分屏dpi优化;可设置显示行距;使用系统函数保存设置,更新后单击小气泡无法弹出,原因不明

20200322 16:31更新:添加电池功率显示

alt

20200418 13:52更新:编译v20beta版本,使用读取sys文件获得电池功率,添加字体大小颜色设置,修复单击无法弹出小气泡问题,目前存在被dock遮挡住的问题,只能通过鼠标拉动设置dock高度或者宽度来解决

alt

20200420 00:01更新:尝试修复插件界面显示为空白的UI问题,失败

20200421 17:01更新:修复电池信息读取失败的问题,加入电池信息开关

dde-sys-monitor-plugin's People

Contributors

q77190858 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.