ubuntu提升使用体验篇

Gnome自用插件

KDE配置相关

安装GSConnect插件后与其他设备配对

  • 远程锁定/解锁屏幕

    设置方式:Mobile Settings -> Connected Device -> Commands 增加以下两项

    1
    2
    /usr/bin/gnome-screensaver-command -l //锁定屏幕
    /usr/bin/gnome-screensaver-command -d //解锁屏幕

系统快捷键

设置方式:Settings -> Keyboard -> View and Customize Shortcuts -> Custom Shortcuts

  • 快速打开scrcpy

    1. 添加打开第一台设备快捷键

      Name: Scrcpy#1

      Command: bash -c "scrcpy -s $(adb devices | grep -sw "device" | awk 'NR==1 {print $1}')"

      Shortcut: Ctrl + 1

    2. 添加打开第二台设备快捷键

      Name: Scrcpy#2

      Command: bash -c "scrcpy -s $(adb devices | grep -sw "device" | awk 'NR==2 {print $1}')"

      Shortcut: Ctrl + 2

  • 将已打开的terminal显示在前台(避免打开过多的窗口导致桌面混乱)

    1. 执行sudo apt install xdotool安装软件包

    2. 将以下脚本保存到~/bin/call-recent-terminal下并追加执行可执行权限

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      #!/bin/bash
      if ! which xdotool > /dev/null 2>&1; then
      echo "You need to install xdotool package first."
      echo "sudo apt-get install xdotool"
      exit 1
      fi
      if [[ $(pgrep -x x-terminal-emul) ]]; then
      xdotool windowactivate `xdotool search --pid $(pgrep -x x-terminal-emul) | tail -1`
      else
      x-terminal-emulator
      fi
    3. 添加自定义快捷键

      Name: Launch recent terminal

      Command: ~/bin/call-recent-terminal

      Shortcut:Ctrl + Alt + R

  • 交互式截屏(类似于微信)

    1. 安装软件包sudo apt install flameshot

    2. 添加自定义快捷键

      Name: Take a screenshot interactively plus

      Command: /usr/bin/flameshot gui

      Shortcut:Shift + Ctrl + Alt + T

Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2015-2024 Kaisar
  • Visitors: | Views:

请我喝杯咖啡吧~

支付宝
微信