Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
强迫症用户的福音,右键添加刷新按钮
Apps Section
4498
views ·
23
replies ·
To
floor
Go
中国新蔡
deepin
2018-12-11 22:23
Author
有一大批从windows用户转到deepin的新用户,都会习惯性的找【刷新】按钮,哈哈,估计官方暂时不会添加这个功能,论坛搜索了一下,已经有老铁发过相关的帖子,我就参考了他的内容,准备了资料,想一想,还是发出来,大家借鉴一下也好呀
add_refresh.tar.gz
附件内有三个文件:
deepin-refresh :右键点击“刷新”时,执行的脚本;
refresh.json :配置右键显示“刷新”的配置文件;
install.sh :安装脚本,下载附件后,解压后,执行 ./install.sh ,就会自动复制以上两个文件到相应的位置,需要授权哦。。。
执行完毕之后,在桌面或者文件管理器,右键就会有“刷新”显示了,不过这个刷新可能并没有做什么动作,就是一个模拟动作而已。
三个配置文件的内容:
deepin-refresh:
#!/bin/bash
#xte 'keydown Multi_key' 'key F5' 'keyup Multi_key'
xte 'key F5'
Copy the Code
refresh.json:
[
{
"MenuType": "EmptyArea",
"Icon": "",
"Text[zh_CN]": "刷新",
"Exec": "deepin-refresh"
}
]
Copy the Code
install.sh:
#!/bin/bash
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin
#为深度deepin添加右键刷新,虽然没有什么用,但是治疗从windows转来的用户,还是很不错的!
echo "为deepin添加右键刷新功能......"
[ ! -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/
echo "需要授权,请输入您的密码进行授权!"
sudo cp ./deepin-refresh /usr/bin/deepin-refresh
sudo chmod +x /usr/bin/deepin-refresh
echo "安装xautomation......"
sudo apt install xautomation
echo "添加右键刷新功能完毕,快去看看吧^_^"
Copy the Code
添加完后的样子:
参考资料:
https://www.jianshu.com/p/b69359884908
感谢@lyvnee老铁的辛勤奉献!
Reply
Like 0
Favorite
View the author
All Replies
1
2
2
>
1
/
2
To page
Go
w***l@163.com
deepin
2018-12-11 22:28
#1
非常感谢,真的是习惯了,回家试试。
Reply
Like 0
View the author
六七八九十
deepin
2018-12-12 00:13
#2
好东西。。。。。。。。
Reply
Like 0
View the author
danzeng
deepin
2018-12-12 00:41
#3
直接F5键不是更方便吗?
其实多次刷新,越刷越慢。没啥大用处。
Reply
Like 0
View the author
nie2100
deepin
2018-12-12 01:08
#4
刷新就是重新载入~为啥说没用呢,非常有用呀
Reply
Like 0
View the author
LeoAny
deepin
2018-12-12 03:17
#5
感谢楼主分享
Reply
Like 0
View the author
rekols
deepin
2018-12-12 03:36
#6
这么偏下。
Reply
Like 0
View the author
gongyf
deepin
2018-12-12 04:30
#7
非常好,好像看到中兴的新起点有刷新。习惯
Reply
Like 0
View the author
Comments
akliusizhe
2020-04-11 23:31
新支点(强行纠正~)
158******06
deepin
2018-12-12 04:32
#8
为什么要刷新?
Reply
Like 0
View the author
le******ly@163.com
deepin
2018-12-12 04:43
#9
肯定是鼠标厂混进来的,这样操作鼠标易坏些。
Reply
Like 0
View the author
六七八九十
deepin
2018-12-13 02:36
#10
每天顶一下
Reply
Like 0
View the author
Lyvnee
deepin
2018-12-13 03:00
#11
我也 来看看
Reply
Like 0
View the author
海鸥
deepin
2018-12-13 15:58
#12
偶有这种贴说这事.搞出来了,支持一下
Reply
Like 0
View the author
jianguo922
deepin
2018-12-13 16:13
#13
感谢楼主分享
Reply
Like 0
View the author
superendermansm
deepin
2019-06-13 05:28
#14
xte后面的就是键么?不太清楚
Reply
Like 0
View the author
浩然
deepin
2019-06-13 16:21
#15
话说刷新有什么用。。我一直都喜欢桌面很乱的感觉,图标喜欢左边放一个右边往上一点再放一个,左下角再往右一点再放一个,中间点偏左边两格再放一个,反正就是铺满整个桌面而不是整齐一个个排队跟随的,这样方便好找啊。。
Reply
Like 0
View the author
走钢丝
deepin
2019-06-14 21:30
#16
收藏。
Reply
Like 0
View the author
superendermansm
deepin
2019-06-14 22:16
#17
顶吧。总有人想要的,楼主打包的太方便了
Reply
Like 0
View the author
master
deepin
2019-06-14 23:14
#18
哈哈。可以可以,这个心理治疗的办法很好。
Reply
Like 0
View the author
superendermansm
deepin
2019-06-15 00:32
#19
master233 发表于 2019-6-14 15:14
哈哈。可以可以,这个心理治疗的办法很好。
有时候闹心特别喜欢右键刷新F5就没这个效果
Reply
Like 0
View the author
神末shenmo
deepin
Spark-App
Q&A Team
2020-04-11 22:57
#20
又有人问了额
Reply
Like 0
View the author
1
2
2
>
1
/
2
To page
Go
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Events
More
add_refresh.tar.gz
附件内有三个文件:
deepin-refresh :右键点击“刷新”时,执行的脚本;
refresh.json :配置右键显示“刷新”的配置文件;
install.sh :安装脚本,下载附件后,解压后,执行 ./install.sh ,就会自动复制以上两个文件到相应的位置,需要授权哦。。。
执行完毕之后,在桌面或者文件管理器,右键就会有“刷新”显示了,不过这个刷新可能并没有做什么动作,就是一个模拟动作而已。
三个配置文件的内容:
deepin-refresh:
添加完后的样子:
参考资料:https://www.jianshu.com/p/b69359884908
感谢@lyvnee老铁的辛勤奉献!