Ubuntu 18.04 截图软件Shutter详细教程,包括启用Edit功能(转发)

Linux/Ubuntu 18.04 截图软件Shutter详细教程,包括启用Edit功能,延时截图等

安装Shutter

sudo add-apt-repository ppa:shutter/ppa
sudo apt-get update
sudo apt-get install shutter

   
   
  • 1
  • 2
  • 3

安装完成后搜索shutter就可以打开了,主界面里面的 Selection 是用鼠标框选指定区域并截屏,Window 是截取某个窗口。
在这里插入图片描述

指令介绍

在终端中可以用 shutter -h 查看指令

$ shutter -h
Usage:
    shutter [options]

Options:
Example 1
shutter -a -p=myprofile --min_at_startup

Example 2
        shutter -s<span class="token operator">=</span>100,100,300,300 -e

Example 3
        shutter --window<span class="token operator">=</span>.*firefox.*

Example 4
        shutter --web<span class="token operator">=</span>http://shutter-project.org/ -e

Capture Mode Options:
-s, --select=[X,Y,WIDTH,HEIGHT]
Capture an area of the screen. Providing X,Y,WIDTH,HEIGHT is
optional.

-f, --full
        Capture the entire screen.

-w, --window<span class="token operator">=</span><span class="token punctuation">[</span>NAME_PATTERN<span class="token punctuation">]</span>
        Select a window to capture. Providing a NAME_PATTERN <span class="token punctuation">(</span>Perl-style
        regex<span class="token punctuation">)</span> ist optional.

-a, --active
        Capture the current active window.

--section
        Capture a section. You will be able to <span class="token keyword">select</span> any child window
        by moving the mouse over it.

-m, --menu
        Capture a menu.

-t, --tooltip
        Capture a tooltip.

--web<span class="token operator">=</span><span class="token punctuation">[</span>URL<span class="token punctuation">]</span>
        Capture a webpage. Providing an URL ist optional.

-r, --redo
        Redo last screenshot.

Settings Options:
-p, --profile=NAME
Load a specific profile on startup.

-o, --output<span class="token operator">=</span>FILENAME
        Specify a filename to save the screenshot to <span class="token punctuation">(</span>overwrites any
        profile-related setting<span class="token punctuation">)</span>.

        Supported image formats: You can save to any popular image
        <span class="token function">format</span> <span class="token punctuation">(</span>e.g. jpeg, png, gif, bmp<span class="token punctuation">)</span>. Additionally it is possible
        to save to pdf, <span class="token function">ps</span> or svg.

        Please note: There are several wildcards available, like

         %Y <span class="token operator">=</span> year
         %m <span class="token operator">=</span> month
         %d <span class="token operator">=</span> day
         %T <span class="token operator">=</span> <span class="token function">time</span>
         <span class="token variable">$w</span> <span class="token operator">=</span> width
         <span class="token variable">$h</span> <span class="token operator">=</span> height
         <span class="token variable">$name</span> <span class="token operator">=</span> multi-purpose <span class="token punctuation">(</span>e.g. window title<span class="token punctuation">)</span>
         <span class="token variable">$nb_name</span> <span class="token operator">=</span> like <span class="token variable">$name</span> but without blanks <span class="token keyword">in</span> resulting strings
         <span class="token variable">$profile</span> <span class="token operator">=</span> name of current profile
         <span class="token variable">$R</span> <span class="token operator">=</span> random char <span class="token punctuation">(</span>e.g. <span class="token variable">$RRRR</span> <span class="token operator">=</span> ag4r<span class="token punctuation">)</span>
         %NN <span class="token operator">=</span> counter

        The string is interpretted by strftime. See <span class="token string">"man strftime"</span> <span class="token keyword">for</span>
        <span class="token function">more</span> examples.

        As an example: shutter -f -e -o <span class="token string">'./%y-%m-%d_<span class="token variable">$w_</span><span class="token variable">$h</span>.png'</span> would
        create a <span class="token function">file</span> named <span class="token string">'11-10-28_1280_800.png'</span> <span class="token keyword">in</span> the current
        directory.

-d, --delay<span class="token operator">=</span>SECONDS
        Wait n seconds before taking a screenshot.

-c, --include_cursor
        Include cursor when taking a screenshot.

-C, --remove_cursor
        Remove cursor when taking a screenshot.

Application Options:
-h, --help
Prints a brief help message and exits.

-v, --version
        Prints version information.

--debug Prints a lot of debugging information to STDOUT.

--clear_cache
        Clears cache, e.g. installed plugins, at startup.

--min_at_startup
        Starts Shutter minimized to tray.

--disable_systray
        Disables systray icon.

-e, --exit_after_capture
        Exit after the first capture has been made. This is useful when
        using Shutter <span class="token keyword">in</span> scripts.

-n, --no_session
        Do not add the screenshot to the session. This is useful when
        using Shutter <span class="token keyword">in</span> scripts.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115

可以发现常用指令有

CommandAction
shutter -s截取鼠标选取的区域
shutter -f截取全屏
shutter -w截取指定窗口
shutter -a截取当前活动窗口
shutter -s -d=SECONDS延时SECONDS秒,截取鼠标选取的区域

设置常用快捷键

知晓了上面的指令我们就可以设置快捷键了,搜索 “Shortkey” 或 ”Shortcut",或者打开 “Settings" -> “Keyboard” 可以打开快捷键设置,移动到最下方的 “Custom Shortcuts”,点 “+” 进行添加,“Name”写一个能认识的名字,“Command”写想要添加的指令,比如 shutter -s,然后再 “Set Shortcut” 添加快捷键,因为平时用QQ习惯了,所以就添加Ctrl + Alt + A 作为截取选取区域的快捷键。如图
在这里插入图片描述

启用Edit功能

Ubuntu 18的Shutter的Edit功能被关闭了,原因是Shutter需要的 libgoo-canvas-perl library在Ubuntu 18.04中不支持了,但是我们可以自行安装。首先需要下载这三个包:

进行安装

sudo dpkg -i libgoocanvas-common_1.0.0-1_all.deb
sudo dpkg -i libgoocanvas3_1.0.0-1_amd64.deb
sudo apt-get -f install
sudo dpkg -i libgoo-canvas-perl_0.06-2ubuntu3_amd64.deb
sudo apt-get -f install

 
 
  • 1
  • 2
  • 3
  • 4
  • 5

就可以启用编辑Edit了
在这里插入图片描述

延时截图

方法1

在“指令介绍”中提到了,可以在command后面加上 -p=SECONDS 进行SECONDS秒的延迟截图,不过我们还有几个方法进行延时截图。

方法2

在主界面的右下角可以设置延迟时间(可能需要重启才能生效)
在这里插入图片描述

方法3

一般来说,我们需要延迟截取的是像菜单Menu这样的区域(此情况下用不了或者快捷键失效),我们可以去到Shutter的 “Edit” -> " Preferences" -> “Advanced” 里面找到 “Menu/Tooltip Capture"设置延时
在这里插入图片描述
每当我们用 “File” -> “New” -> “Menu” 的时候就会延迟10s(或者你设置的时间),给你足够时间去打开一个Menu,然后Shutter会自动把Menu给截取,如下图
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值