deepin利用conky打造一个炫酷的桌面
Tofloor
poster avatar
y***8@gmail.com
deepin
2017-11-11 23:22
Author
本帖最后由 madness 于 2018-7-9 12:25 编辑

前两天在网上看到一个conky的配置文件,感觉挺有意思就研究了一下,自己感觉不足的地方又改了改,贴出来请各位大佬指点一二(事先声明本人审美观不怎么好,不喜勿喷)。

废话不多说先上效果截图:










-------------2017年11月17日更新--------------------
解决了一项获取不到天气的bug
有需要的大佬们请自行下载




-------------2018年1月29日更新--------------------

更新了一键安装脚本!!!  小白福音
鉴于很多鞋依旧不能成功安装,顾写了个一键安装脚本。
1.首先下载附件“一键脚本.tar.gz”,然后解压到桌面,一定要解压到桌面。(否则执行失败)
2.然后打开浏览器输入后面地址 https://tianqi.moji.com/   (作用是让墨迹天气定位你的地理位置)
3.然后在桌面鼠标右击”在终端打开“,输入下面命令
  1. cd $HOME/Desktop  
  2. sh setup.sh
Copy the Code

执行完上面命令后稍等片刻,会让你输入用户密码,接下来会做一些简单的配置,遇到”[Y/n]“或者"[Yes/no]"这种的就输入”y“并回车,其他的则直接回车。

本脚本不代表一定能够安装成功,本作者也很菜,只是希望能帮到刚入门的童鞋。


-------------2018年2月9日更新--------------------

本论坛有位大神在评论区,针对本脚本给出的一些建议非常不错,而且还对本脚本进行了一些改进,并打包了deb安装程序,很不错,有兴趣的童鞋可以到下面链接去看看
https://bbs.deepin.org/post/152734









-----------------------2018年7月7日更新-----------------------------


更新内容:
1,添加了"一言网页"模块,时刻为您带来好的句子     链接:https://hitokoto.cn/更新
2,部分模块根据情况做了相应调整,


安装方法:
1.首先下载最新安装程序,然后解压到桌面,一定要解压到桌面。(否则执行失败)
2.然后打开浏览器输入后面地址 https://tianqi.moji.com/   (作用是让墨迹天气定位你的地理位置)
3.然后在桌面鼠标右击”在终端打开“,输入下面命令
  1. cd $HOME/Desktop  
  2. sh setup.sh   
Copy the Code
执行完上面命令后稍等片刻,会让你输入用户密码,
接下来会做一些简单的配置,遇到”[Y/n]“或者"[Yes/no]"这种的就输入”y“并回车,其他的则直接回车。

【下载最新版】


【下载历史版本】

Reply Favorite View the author
All Replies
4 / 7
To page
cherrygods
deepin
2018-06-07 18:39
#61
高分辨率下貌似不怎么好啊,字体太小
Reply View the author
danlong
deepin
2018-06-07 19:36
#62
怎么卸载
Reply View the author
seven123
deepin
2018-06-08 17:57
#63

删除与conky所有有关文件,先killall conky 进程,然后删除conky所有有关文件,就可以了
Reply View the author
danlong
deepin
2018-06-08 18:17
#64
https://bbs.deepin.org/post/148009
删除与conky所有有关文件,先killall conky 进程,然后删除conky所有有关文件,就可以了 ...

不会啊
Reply View the author
seven123
deepin
2018-06-08 18:33
#65

killall conky

找出与conky 有关文件  sudo find / -name conky

文件在这些位置 执行以下
sudo mv /etc/conky/ /home/你的用户名/Desktop/123


sudo mv /usr/lib/conky/ /home/deepin/Desktop/1234

sudo mv /usr/share/doc/conky/ /home/你的用户名/Desktop/12345


sudo mv /usr/share/doc/conky-all/ /home/你的用户名/Desktop/123456

然后把移到桌面的文件,删掉就行了
Reply View the author
seven123
deepin
2018-06-08 18:37
#66
https://bbs.deepin.org/post/148009
killall conky

找出与conky 有关文件  sudo find / -name conky

/home/你的用户名
Reply View the author
seven123
deepin
2018-06-08 18:39
#67
https://bbs.deepin.org/post/148009
请问怎么卸载?。。。

看72楼
Reply View the author
y***8@gmail.com
deepin
2018-06-08 19:25
#68

等等我  抽时间更新卸载脚本
Reply View the author
qq1134407214
deepin
2018-06-10 01:07
#69
两个问题.
第一个天气显示北京的..我在~/conky/conky-weather.cfg中改成武汉的了.先安装你的DEB包再装的这个插件.
第二个,流量一直为0...
Reply View the author
qq1134407214
deepin
2018-06-10 01:37
#70
现在第一个问题通过修改sh文件的地址解决了.第二个问题有点无从着手...
Reply View the author
y***8@gmail.com
deepin
2018-06-10 05:35
#71
https://bbs.deepin.org/post/148009
现在第一个问题通过修改sh文件的地址解决了.第二个问题有点无从着手...

命令行输入 ifconfig  结果截图发上来
Reply View the author
qq1134407214
deepin
2018-06-10 21:26
#72
https://bbs.deepin.org/post/148009
命令行输入 ifconfig  结果截图发上来

大佬请看
Reply View the author
qq1134407214
deepin
2018-06-10 21:53
#73
https://bbs.deepin.org/post/148009
命令行输入 ifconfig  结果截图发上来

同时今天开机发现天气乱了,重新跑了下$HOME/.feed/feed.sh好了.请问下开机不是自启动的这个脚本吗?
Reply View the author
qq1134407214
deepin
2018-06-10 21:54
#74
https://bbs.deepin.org/post/148009
命令行输入 ifconfig  结果截图发上来

然后这个可以加个电池电量么...好想跟你学习啊.大佬
Reply View the author
151******75
deepin
2018-06-10 22:05
#75
如何卸载?感觉这个在我的电脑上效果不是很好
Reply View the author
字甲达宾
deepin
2018-06-10 22:19
#76
https://bbs.deepin.org/post/148009
然后这个可以加个电池电量么...好想跟你学习啊.大佬

在 ~/.conkyrc 中,加上这一行代码,即可显示电量和剩余时间

  1. ${color #ffff00}电池: ${color}$alignr$battery [剩余时间 $battery_time]
Copy the Code


${color #98c2c7}主机名: ${color}$alignr$nodename
${color #98c2c7}内核:  ${color}$alignr$kernel
${color #98c2c7}已开机: ${color}$alignr$uptime$

------------------

与电池相关的 conky 内部指令有多个,可以自己在   ~/.conkyrc 中添加,查看效果

$battery
$battery_bar
$battery_percent
$battery_short
$battery_time


Reply View the author
aurthur
deepin
2018-06-10 22:31
#77
闭嘴,上图
Reply View the author
qq1134407214
deepin
2018-06-11 07:03
#78
https://bbs.deepin.org/post/148009
在 ~/.conkyrc 中,加上这一行代码,即可显示电量和剩余时间

谢谢大佬,亲测成功,但是没有剩余时间
Reply View the author
fengzhixun
deepin
2018-06-11 18:20
#79
我是 debian 系统,文件管理器 nemo,窗口管理器 mutter。必须要右键一次,弹出右键菜单才会出现这个 conky 窗口。不知道是不是因为这个窗口属于窗口管理器的 top window group?每次一点击显示桌面(调用的接口是 meta_show_desktop),就把这个 conky 隐藏掉了……
Reply View the author
y***8@gmail.com
deepin
2018-06-11 19:02
#80

编辑文件    $HOME/.conkyrc  (/home/你用户名/.conkyrc   以点开头的文件为隐藏文件)
滑到最下面找到下面两行内容   
下载速度alignr${downspeed wlp2s0} k/s
上传速度alignr${upspeed wlp2s0} k/s

并将替换成下面内容
下载速度alignr${downspeed wlp3s0} k/s
上传速度alignr${upspeed wlp3s0} k/s

然后保存重启   



Reply View the author
4 / 7
To page