Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
强迫症用户的福音,右键添加刷新按钮
Apps Section
4426
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
2
/
2
To page
Go
量子巡游者
Moderator
2020-04-15 05:19
#21
Linux要是真心卡,刷新是没用的!!个人使用还可以,不建议添加进系统里
Reply
Like 0
View the author
baiyang666
deepin
2020-04-15 05:40
#22
咋卸载?
Reply
Like 0
View the author
minchengan
deepin
2020-04-15 09:13
#23
F5就行了
Reply
Like 0
View the author
<
1
2
2
2
/
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 Ranking
Change
Copying folder - Not enough disk space?
Update driver for my computer
Popular Events
More
add_refresh.tar.gz
附件内有三个文件:
deepin-refresh :右键点击“刷新”时,执行的脚本;
refresh.json :配置右键显示“刷新”的配置文件;
install.sh :安装脚本,下载附件后,解压后,执行 ./install.sh ,就会自动复制以上两个文件到相应的位置,需要授权哦。。。
执行完毕之后,在桌面或者文件管理器,右键就会有“刷新”显示了,不过这个刷新可能并没有做什么动作,就是一个模拟动作而已。
三个配置文件的内容:
deepin-refresh:
添加完后的样子:
参考资料:https://www.jianshu.com/p/b69359884908
感谢@lyvnee老铁的辛勤奉献!