隐藏脚本:
cat /opt/apps/top.yzzi.youjian/files/hide.sh #!/bin/bash file=$1 filedir=$(dirname $file) filename=$(basename $file) cd $filedir mv $filename .$filename
显示隐藏脚本:
cat /opt/apps/top.yzzi.youjian/files/cancelhide.sh #!/bin/bash file=$1 filedir=$(dirname $file) filename=$(basename $file) res=$(echo $filename | grep "^\.") if [ -n "${res}" ];then newname=${filename#*.} cd $filedir mv $filename $newname fi
刷新脚本:
cat /opt/apps/top.yzzi.youjian/files/Refresh.sh #!/bin/bash xte "keydown Multi_key" "key F5" "keyup Multi_key"
编写右键菜单上下文配置文件
cat /usr/share/deepin/dde-file-manager/oem-menuextensions/tools.desktop [Desktop Entry] Type=Application Name=tools Icon=deepin-repair-tools Name[zh_CN]=工具集 Actions=HideAction;CcHideAction;HashAction;ShowAllAction;CpPathAction X-Deepin-Vendor=user-custom X-DFM-MenuTypes=SingleFile;SingleDir;MultiFileDirs;EmptyArea [Desktop Action HideAction] Name=隐藏 Icon=0xdbe Exec=/opt/apps/top.yzzi.youjian/files/hide.sh %U [Desktop Action CcHideAction] Name=取消隐藏 Icon=aegisub Exec=/opt/apps/top.yzzi.youjian/files/cancelhide.sh %U [Desktop Action ShowAllAction] Name=显示隐藏文件 Icon=application-x-gnome-theme-package Exec=/opt/apps/top.yzzi.youjian/files/show.sh [Desktop Action CpPathAction] Name=复制文件路径 Icon=com.github.hluk.copyq Exec=/opt/apps/top.yzzi.youjian/files/copyfilepath.sh %U
编写右键刷新菜单上下文配置文件
cat /usr/share/deepin/dde-file-manager/oem-menuextensions/Refresh.desktop [Desktop Entry] Exec=xte 'key F5' GenericName=Refresh GenericName[zh_CN]=刷新 MimeType=inode/directory; Name=Refresh Name[zh_CN]=刷新 Type=Application X-Deepin-Vendor=user-custom Exec=/opt/apps/top.yzzi.youjian/files/Refresh.sh
感谢分享
厉害,值得收藏!
Featured Collection
Popular Ranking
Popular Events
隐藏脚本:
显示隐藏脚本:
刷新脚本:
编写右键菜单上下文配置文件
编写右键刷新菜单上下文配置文件