sonichy / dde-dock-cmud Goto Github PK
View Code? Open in Web Editor NEWDDE Dock net speed plugin
DDE Dock net speed plugin
本人宽带下载50M/s 上下 插件数值显示不够直接 现在网速是越来越快了 能否考虑动态单位 比如越界百分之多少就换算单位
没有网速显示一直为0,其他数据显示正常
1)如果我想把CPU占用率显示在dock上面怎么办?可以选择CPU,网速,硬盘,内存任意一个在dock上面吗?
2)不知道作者用没用过gnome的插件system monitor
https://extensions.gnome.org/extension/120/system-monitor/
这款插件以动画的形式显示CPU,网速,硬盘,内存的情况,而且可以自己配置哪一项或者多项显示在面板上 ,所以这款插件的各项数值可以改成动画形式显示吗,动画显示第一更直观,第二会显示历史数值。
1.不小心点了插件,右下角会出现一个绿框里面写着“8秒”,有时候左上角还会出现托盘程序
2.内存使用率不准,网速一直是0
谢谢大佬
可以打个deb或者flatpak吗
大佬,在安装后系统提示这个插件和系统版本不兼容
BUG:显示的内存占用正好是实际的两倍,是算错了么?
建议:加一个底色吧,否则很多界面都是白色的,完全看不见的
如题,更改在此行:6190153#diff-ef98f9b28566299d3dadc8d8091f5a73R1。编译报错找不到 QSvgRenderer
。
┬─[chenjunyu19@chenjunyu19-Linux:/tmp/CMDU_DDE_DOCK]─[09时34分14秒]
╰─>$ qmake .
Info: creating stash file /tmp/CMDU_DDE_DOCK/.qmake.stash
┬─[chenjunyu19@chenjunyu19-Linux:/tmp/CMDU_DDE_DOCK]─[09时34分36秒]
╰─>$ make
g++ -c -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtCore -I. -isystem /usr/include/libdrm -I/usr/lib/qt/mkspecs/linux-g++ -o cmduplugin.o cmduplugin.cpp
g++ -c -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtCore -I. -isystem /usr/include/libdrm -I/usr/lib/qt/mkspecs/linux-g++ -o cmduwidget.o cmduwidget.cpp
cmduwidget.cpp:6:10: 致命错误:QSvgRenderer:没有那个文件或目录
#include <QSvgRenderer>
^~~~~~~~~~~~~~
编译中断。
make: *** [Makefile:557:cmduwidget.o] 错误 1
在 cmdu.pro
中补回 svg
后,编译正常。QT += widgets svg
猜测:您的编译环境可能不干净。实测在编译成功后不清理,再去掉 svg
依赖仍能够编译。
笔记本使用的是小任务栏模式,希望搞个单行显示模式。
Hey the speed monitor is displaying wrong network speed. Steam for example would be downloading at max speed of 10mbps and the system monitor displays it correctly but the CMDU dock would display it around 400KB/s
deepin15.10.1,./install.sh安装插件以后 dde dock重启了,但是dock上面并没有任何多余的内容,我觉得应该是插件加载失败了
点击右键-》插件,也没有新安装的这款插件
又没有显示了
这样的话,我基本可以完全去除conky
如题
网卡部分信息如下
ft@TF:~$ ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether xx:xx:xx:xx:xx txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.99.10 netmask 255.255.255.0 broadcast 192.168.99.255
inet6 xx:xx:xx:xx:xx prefixlen 64 scopeid 0x20
ether xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet)
RX packets 26 bytes 3788 (3.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 70 bytes 9698 (9.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xf2500000-f2520000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp3s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
marcin@marcin-PC:~$ cat /proc/net/dev
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
lo: 305987401 4267934 0 0 0 0 0 0 305987401 4267934 0 0 0 0 0 0
eno1: 1592199395 1430465 0 0 0 0 0 768 185469407 1209207 0 0 0 0 0 0
marcin@marcin-PC:~$
任务栏右键->插件, 启用或者关闭 电源或者网络这两个选项,任务栏就重启, 卸载了以后问题也在,有什么办法变回原来正常的状态呢?
操作系统:Deepin 15.10.2
首先下载后的原始so文件无法使用,系统显示插件版本不对。
在QtCreator中打开工程,下载dde-dock库后,能够进行正常编译。
编译后,插件能够正常加载,其余功能都正常,但是网速显示为0。
在cmduplugin.cpp中,定位到287~288行,可以看出程序从"/proc/net/dev"中读取网速信息。
单步调试发现,解析后的文本list中,网速应该对应的是list的第2和第10个元素,程序中原来写的是第1和第9个,那两个值是字符串,tolong方法返回值为0。
因此把这两行中的数字1和9改成2和10后,问题就解决了。
个人猜测是系统版本升级后,"/proc/net/dev"文件的格式发生了细微的变化,导致这一Bug。
左右停靠时,宽度不够显示不全,白色是进度条,左边是内存使用率,右边是CPU使用率。
Originally posted by @sonichy in #50 (comment)
考虑的挺细心。但是我觉得可以再美化一下,这个显示可以考虑做成自适应的。看起来有点怪(可能是众口难调吧,嘿嘿)
装了个archlinux+deepin桌面。。。
A little change is done by forking your project. But i am new to qmake projects and dont know how to compile them from source. I know a simple google may be effective, but it will be helpful if you write the commands here, or in the readme.md file so I can compile the project. Thank you in advance.
Hello ,
Does this support English language and Deepin Desktop Environment installed on Arch Linux
Tried the current version , it does not works dock keeps on flickering
安装以后并没有显示在下面,请问需要下载什么额外的东西吗?
希望能将网速单位统一用KB。
因为由于习惯,右下角闪动经常让我认为是有消息。但是实际上仅仅是网速在0.00B-1k之间变动,对于这么小的网速变动,私以为统一显示成0KB或者<1KB这样的效果会更恰当些,不会因为一丁点的网速变动导致右下角闪动。
单位统一用KB,小数位后面两位可以省略以节省空间,对于大于1M的数值,显示成4位KB,可以达到喵一眼数值长度就大概了解当前网速的效果。
安装完后任务栏完全无法点击,网速一直显示为零。
dde-dock模式选择左右时,也就是dock竖向时,由于显示网速是固定宽度,当竖向显示时网速显示宽度不够,右侧单位部分显示不全,KB/s被截断。希望右键菜单多几个定制的选项,比如选择横向和竖向,固定宽度或者不固定等。
#5
小于1kb的网速显示的确没必要,但是大于1024KB的还显为KB也没必要啊,我经常就超过1024KB然后显示那么长一串数字。能不能改成可配置的?或者在网速大于1kb的时候如果发生单位跃迁就变换显示单位?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.