一、 ubuntu的主目录可以添加创建文档模板(/home/ubuntu/模板):

之后右键就看看到新建问价,新建txt和新建md选项。
二、 ubunu添加执行脚本(脚本存放位置:/home/ubuntu/.local/share/nautilus/scripts)
1.打开终端terminal:
gnome-terminal
2.打开反编译工具open-jadx-gui:
/home/ubuntu/tools/jadx-1.4.4/bin/jadx-gui
3.打开Android Sdutiod(open-audroidstudio):
sh /home/ubuntu/tools/android-studio-2021.1.1.8-linux/android-studio/bin/studio.sh
下面是真正打开android studio的脚本
#!/bin/bash
cd /home/ubuntu/tools/android-studio-2021.1.1.8-linux/android-studio/bin/
./studio.sh
cd /home/ubuntu/桌面
4.选中apk文件右键安装adb-install:
#!/bin/bash
#
# This script install the selected apk file onto your phone if connected.
#
# Distributed under the terms of GNU GPL version 2 or later
#
# Install in ~/.gnome2/nautilus-scripts or ~/Nautilus/scripts
# You need to be running Nautilus 1.0.3+ to use scripts.
gnome-terminal -e "adb -d install $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS"
5.terminal中打开当前目录类似mac的open .:
#!/bin/bash
# CURRENT_DIR=$(cd $(dirname $0); pwd)
CURRENT_DIR=$(pwd)
nautilus $CURRENT_DIR
6.topActvity:
#!/bin/bash
#
# This script install the selected apk file onto your phone if connected.
#
# Distributed under the terms of GNU GPL version 2 or later
#
# Install in ~/.gnome2/nautilus-scripts or ~/Nautilus/scripts
# You need to be running Nautilus 1.0.3+ to use scripts.
gnome-terminal -e "/home/ubuntu/tools/myshell/topActivity"
#!/bin/sh
echo " "
echo " "
echo " "
echo " "
echo " --------------------------白日依山尽,黄河入海流。欲穷千里目,更上一层楼。----------------------------"
adb shell dumpsys activity activities | sed -En -e '/Running activities/,/Run #0/p'
echo " "
echo " "
7.opendir
#!/bin/bash
# CURRENT_DIR=$(cd $(dirname $0); pwd)
CURRENT_DIR=$(pwd)
nautilus $CURRENT_DIR
网友评论