如何在 Kubuntu 16.04.3 中使用键盘组合截取屏幕截图?

mrj*_*per 10 kde kubuntu 16.04

在 OSX 上,我可以使用键盘组合(Shift-Option-3 或 4)轻松拍摄桌面图片。图像是在我的桌面上自动创建的。

我如何在 Kubuntu 上模拟这个?

谢谢

use*_*687 11

使用键盘快捷键对桌面进行拍照,图像自动保存到用户桌面

使用 Spectacle - KDE Framework 5 默认截图捕获实用程序:

$ spectacle --help
Usage: spectacle [options]
KDE Screenshot Utility

Options:
  -v, --version              Displays version information.
  -h, --help                 Displays this help.
  --author                   Show author information.
  --license                  Show license information.
  --desktopfile <file name>  The base file name of the desktop entry for this
                             application.
  -f, --fullscreen           Capture the entire desktop (default)
  -m, --current              Capture the current monitor
  -a, --activewindow         Capture the active window
  -u, --windowundercursor    Capture the window currently under the cursor,
                             including parents of pop-up menus
  -t, --transientonly        Capture the window currently under the cursor,
                             excluding parents of pop-up menus
  -r, --region               Capture a rectangular region of the screen
  -g, --gui                  Start in GUI mode (default)
  -b, --background           Take a screenshot and exit without showing the GUI
  -s, --dbus                 Start in DBus-Activation mode
  -n, --nonotify             In background mode, do not pop up a notification
                             when the screenshot is taken
  -o, --output <fileName>    In background mode, save image to specified file
  -d, --delay <delayMsec>    In background mode, delay before taking the shot
                             (in milliseconds)
  -w, --onclick              Wait for a click before taking screenshot.
                             Invalidates delay
Run Code Online (Sandbox Code Playgroud)

命令:

spectacle -f -b -n -o "$HOME/Desktop/ScreenShot-$(date +%Y%m%d%H%M%S).jpg"
Run Code Online (Sandbox Code Playgroud)

将整个桌面图像捕获到用户桌面文件夹又名桌面。

可以使用 KDE 菜单编辑器将命令添加到 KDE 菜单:https : //docs.kde.org/stable5/en/kde-workspace/kmenuedit/index.html

在此处输入图片说明

可以使用用户定义的快捷方式启动该命令:

在此处输入图片说明

单击快捷方式时,图片将保存到桌面:

在此处输入图片说明