在 OSX 上,我可以使用键盘组合键(Shift-Option-3 或 4)轻松拍摄桌面照片。图像会自动创建在我的桌面上。
我如何在 Kubuntu 上模拟这个?
谢谢
答案1
使用键盘快捷键拍摄桌面照片,图像自动保存到用户桌面
使用 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
命令:
spectacle -f -b -n -o "$HOME/Desktop/ScreenShot-$(date +%Y%m%d%H%M%S).jpg"
将捕获整个桌面图像到用户桌面文件夹(又名桌面)。
可以使用 KDE 菜单编辑器将该命令添加到 KDE 菜单:https://docs.kde.org/stable5/en/kde-workspace/kmenuedit/index.html
可以使用用户定义的快捷方式启动该命令:
单击快捷方式时,图片将保存到桌面:
答案2
ksnapshot 是 KDE (kubuntu) 版本的屏幕截图。可以从菜单或按下prt scrn
按钮启动