强迫症用户的福音,右键添加刷新按钮
Tofloor
poster avatar
中国新蔡
deepin
2018-12-11 22:23
Author
有一大批从windows用户转到deepin的新用户,都会习惯性的找【刷新】按钮,哈哈,估计官方暂时不会添加这个功能,论坛搜索了一下,已经有老铁发过相关的帖子,我就参考了他的内容,准备了资料,想一想,还是发出来,大家借鉴一下也好呀

add_refresh.tar.gz

附件内有三个文件:
deepin-refresh  :右键点击“刷新”时,执行的脚本;
refresh.json  :配置右键显示“刷新”的配置文件;
install.sh  :安装脚本,下载附件后,解压后,执行 ./install.sh ,就会自动复制以上两个文件到相应的位置,需要授权哦。。。

执行完毕之后,在桌面或者文件管理器,右键就会有“刷新”显示了,不过这个刷新可能并没有做什么动作,就是一个模拟动作而已。

三个配置文件的内容:

deepin-refresh:
  1. #!/bin/bash

  2. #xte 'keydown Multi_key' 'key F5' 'keyup Multi_key'

  3. xte 'key F5'
Copy the Code
refresh.json:
  1. [
  2.     {
  3.         "MenuType": "EmptyArea",
  4.         "Icon": "",
  5.         "Text[zh_CN]": "刷新",
  6.         "Exec": "deepin-refresh"
  7.     }
  8. ]
Copy the Code
install.sh:
  1. #!/bin/bash
  2. PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin

  3. #为深度deepin添加右键刷新,虽然没有什么用,但是治疗从windows转来的用户,还是很不错的!
  4. echo "为deepin添加右键刷新功能......"
  5. [ ! -d ~/.config/deepin/dde-file-manager/menuextensions ] && mkdir ~/.config/deepin/dde-file-manager/menuextensions;cp ./refresh.json ~/.config/deepin/dde-file-manager/menuextensions/ || cp ./refresh.json ~/.config/deepin/dde-file-manager/menuextensions/
  6. echo "需要授权,请输入您的密码进行授权!"
  7. sudo cp ./deepin-refresh /usr/bin/deepin-refresh
  8. sudo chmod +x /usr/bin/deepin-refresh

  9. echo "安装xautomation......"
  10. sudo apt install xautomation

  11. echo "添加右键刷新功能完毕,快去看看吧^_^"
Copy the Code


添加完后的样子:


参考资料:https://www.jianshu.com/p/b69359884908
感谢@lyvnee老铁的辛勤奉献!
Reply Favorite View the author
All Replies
1 / 2
To page
avatar
w***l@163.com
deepin
2018-12-11 22:28
#1
非常感谢,真的是习惯了,回家试试。
Reply View the author
avatar
六七八九十
deepin
2018-12-12 00:13
#2
好东西。。。。。。。。
Reply View the author
avatar
danzeng
deepin
2018-12-12 00:41
#3
直接F5键不是更方便吗?
其实多次刷新,越刷越慢。没啥大用处。
Reply View the author
avatar
nie2100
deepin
2018-12-12 01:08
#4
刷新就是重新载入~为啥说没用呢,非常有用呀
Reply View the author
avatar
LeoAny
deepin
2018-12-12 03:17
#5
感谢楼主分享
Reply View the author
avatar
rekols
deepin
2018-12-12 03:36
#6
这么偏下。
Reply View the author
avatar
gongyf
deepin
2018-12-12 04:30
#7
非常好,好像看到中兴的新起点有刷新。习惯
Reply View the author
Comments
akliusizhe
2020-04-11 23:31
新支点(强行纠正~)
avatar
158******06
deepin
2018-12-12 04:32
#8
为什么要刷新?
Reply View the author
avatar
le******ly@163.com
deepin
2018-12-12 04:43
#9
肯定是鼠标厂混进来的,这样操作鼠标易坏些。
Reply View the author
avatar
六七八九十
deepin
2018-12-13 02:36
#10
每天顶一下
Reply View the author
avatar
Lyvnee
deepin
2018-12-13 03:00
#11
我也  来看看
Reply View the author
avatar
海鸥
deepin
2018-12-13 15:58
#12
偶有这种贴说这事.搞出来了,支持一下
Reply View the author
avatar
jianguo922
deepin
2018-12-13 16:13
#13
感谢楼主分享
Reply View the author
avatar
superendermansm
deepin
2019-06-13 05:28
#14
xte后面的就是键么?不太清楚
Reply View the author
avatar
浩然
deepin
2019-06-13 16:21
#15
话说刷新有什么用。。我一直都喜欢桌面很乱的感觉,图标喜欢左边放一个右边往上一点再放一个,左下角再往右一点再放一个,中间点偏左边两格再放一个,反正就是铺满整个桌面而不是整齐一个个排队跟随的,这样方便好找啊。。
Reply View the author
avatar
走钢丝
deepin
2019-06-14 21:30
#16
收藏。
Reply View the author
avatar
superendermansm
deepin
2019-06-14 22:16
#17
顶吧。总有人想要的,楼主打包的太方便了
Reply View the author
avatar
master
deepin
2019-06-14 23:14
#18
哈哈。可以可以,这个心理治疗的办法很好。
Reply View the author
avatar
superendermansm
deepin
2019-06-15 00:32
#19
master233 发表于 2019-6-14 15:14
哈哈。可以可以,这个心理治疗的办法很好。

有时候闹心特别喜欢右键刷新F5就没这个效果
Reply View the author
avatar
神末shenmo
deepin
Spark-App
Q&A Team
2020-04-11 22:57
#20
又有人问了额
Reply View the author
1 / 2
To page