Chinaunix首页 | 论坛 | 博客
  • 博客访问: 499298
  • 博文数量: 176
  • 博客积分: 4045
  • 博客等级: 上校
  • 技术积分: 2491
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-19 11:23
文章分类

全部博文(176)

文章存档

2011年(7)

2009年(12)

2008年(157)

我的朋友

分类:

2008-05-31 09:45:34


#!/bin/bash

# Location to save files
WORKINGDIR=$HOME/screenshots
# Default delay before taking screenshots
DELAY=3
#Prefix to use for images captured.
PREFIX=screenshot

# Check if the dir to store the screenshots exists, else create it:
if [ ! -d "${WORKINGDIR}" ]; then mkdir "${WORKINGDIR}"; fi

i=`ls -l $WORKINGDIR/$PREFIX*.png | wc -l`
((i = i+1))

sleep $DELAY
import -frame -depth 8 -dither -quality 9 $WORKINGDIR/$PREFIX-$i.png

提示:

1.需要安装 imagemagick 才能使用此脚本
2.截取的图像默认保存到用户主目录的 screenshots
3.在截图时,会延迟 3 秒

阅读(565) | 评论(0) | 转发(0) |
0

上一篇:Udev 实现

下一篇:linux命令-locale字符显示

给主人留下些什么吧!~~