ubuntu 笔记

1.ubuntu中在Launcher上添加Android Studio的运行图标

运行命令创建desktop文件:

sudo gedit /usr/share/applications/android_studio.desktop

打开窗口后输入以下内容,注意Exec和Icon要修改成自己系统下Android Studio的路径。

[Desktop Entry]
Type=Application
Name=Android Studio
Exec="/opt/android-studio/bin/studio.sh" %f
Icon=/opt/android-studio/bin/studio.png
Categories=development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-android-studio

保存关闭文件,运行以下命令添加执行权限:

sudo chmod +x /usr/share/applications/android_studio.desktop

使用命令打开applications文件夹:

sudo nautilus /usr/share/applications

找到android_studio.desktop文件,把文件拖动到Launcher条上

2.终端多窗口分屏Terminator

安装

sudo apt-get install terminator

快捷键

Ctrl+Shift+E    垂直分割窗口
Ctrl+Shift+O    水平分割窗口
    F11         全屏
Ctrl+Shift+C    复制
Ctrl+Shift+V    粘贴
Ctrl+Shift+N    或者 Ctrl+Tab 在分割的各窗口之间切换
Ctrl+Shift+X    将分割的某一个窗口放大至全屏使用
Ctrl+Shift+Z    从放大至全屏的某一窗口回到多窗格界面

优化配置

sudo vim ~/.config/terminator/config
[global_config]
  geometry_hinting = False
  handle_size = 1
  inactive_color_offset = 1.0
  title_font = mry_KacstQurn Bold 11
  title_hide_sizetext = True
[keybindings]
[layouts]
  [[default]]
    [[[child1]]]
      parent = window0
      profile = default
      type = Terminal
    [[[window0]]]
      parent = ""
      type = Window
[plugins]
[profiles]
  [[default]]
    background_darkness = 0.76
    background_image = None
    background_type = transparent
    cursor_color = "#3036ec"
    custom_command = tmux
    font = Ubuntu Mono 13
    foreground_color = "#ffffff"
    login_shell = True
    show_titlebar = False
    use_system_font = False

猜你喜欢

转载自blog.csdn.net/koibiki/article/details/81014820