本博客已转移至 http://www.lupaworld.com/home/35714

linux屏幕截图脚本

上一篇 / 下一篇  2007-09-26 06:09:34 / 个人分类:Linux

#!/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 秒


http://www.xyabc.cn/software/nuclear/ss.sh



---------------------------------------------------
核弹 / KernBombe (音译:卡邦) 系统






TAG: Linux

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-09-06  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 89897
  • 日志数: 252
  • 图片数: 1
  • 书签数: 7
  • 建立时间: 2007-03-30
  • 更新时间: 2008-07-07

RSS订阅

Open Toolbar