如何设置快捷方式来截取选定区域?

Ric*_*ick 127 gnome shortcut-keys screenshot 12.04

In gnome's screen shot program, the quick keys PrtScn captures the entire screen and alt+PrtScn captures the active window. Is there a way to script or set up the third capture option of a selected area?

Update: I don't seem to have this key already mapped... 在此处输入图片说明

hin*_*gev 140

  1. 打开系统设置->键盘->快捷方式
  2. 选择自定义快捷方式(您也可以转到Screenshot -s,它会起作用)
  3. 点击 +
  4. 填写字段
    • 姓名Take a screenshot of area
    • 命令gnome-screenshot -a或者shutter -s(如果u喜欢快门)
  5. 单击确定
  6. 双击您制作的内容并设置快捷方式Shift+PrtSc

- 就这样 ... ;)


发出命令
设置快捷方式

  • 根据下面的答案,Ubuntu 12.04 现在开箱即用地内置了此快捷方式。 (3认同)
  • 在 Linux Mint 中,它是“首选项 -> 键盘快捷键”,您需要的命令是“mate-screenshot -a” (2认同)

ish*_*ish 127

That shortcut is already built-in: Shift+PrtScr :)

The full-list of screenshot keyboard shortcuts is:

在此处输入图片说明

  • 也适用于 Ubuntu 14.04 (7认同)
  • 谢谢,不过我好像没有。你介意张贴一个屏幕截图,说明它映射到哪个命令?我在更新中包含了我上面的屏幕截图。 (2认同)
  • @israteneda 在您的图片文件夹中 (/home/yourname/Pictures) (2认同)

小智 6

虽然以上答案在 Ubuntu 中对我有用;切换到Lubuntu后,我注意到它ShiftPrtScn不再工作。

以下过程为我修复了它。由于在 Lubuntu 中使用了该程序scrot,我发现我必须将以下内容添加到~/.config/openbox/lubuntu-rc.xml

<!-- Launch scrot with interactive select when Shift-Print is pressed -->
<keybind key="S-Print">
  <action name="Execute">
    <command>scrot -s</command>
  </action>
</keybind>
Run Code Online (Sandbox Code Playgroud)

更改后不要忘记发出:openbox --reconfigure激活更新。

有关更多详细信息,请参阅Lubuntu 文档


odi*_*ont 5

Gnome 现在默认包含一个工具。

以前的Shift+Prt Scr似乎不再对我有用。不确定这是否是一种回归。

但只需按Prt Scr(打印屏幕)就会弹出此 UI,让您可以截图:

图片由天哪提供!乌班图!Ubuntu 22.04 LTS:屏幕截图导览