screenshot
2008年08月04日 (X)
command
% import -window root cap.jpg #1 % import -window root -quality 100 cap.jpg #2 % sleep 10; import -window root cap.jpg #3 1.現在の画面をJPG形式でcap.jpgに保存 2.現在の画面をクオリティ100でJPG形式でcap.jpgに保存 3.10秒後の画面をJPG形式でcap.jpgに保存
note
importコマンドがない場合,ImageMagickをinstallすればOK 例: # yum -y install ImageMagick.i386 cf. % man import % man ImageMagick % import -help
PR
xset: bell settings
2008年08月04日 (X)
command
% xset b off # bell off % xset b on # bell on % xset b # default % xset b 50 # volume:50 % xset b 100 10000 # volume:100, frequency:10KHz % xset b 100 1000 100 # volume:100, frequency:1KHz, length:0.1sec
note
Usage: xset b [volume] [frequency] [length] volume: 0 - 100 frequency: 0 - 32767 length: 0 - 32767 cf. % man xset
xset: mouse settings
2008年08月04日 (X)
command
% xset m 2 5 # acceleration:2, threshold:5 % xset m 2 # acceleration:2 % xset m # default
note
Usage: xset m [acceleration] [threshold] acceleration: 0 - 32767 threshold: 0 - 32767 threshold:しきい値 加速度を感知する最小ピクセル値 cf. % man xset
my zshrc 080803
2008年08月03日 (linux)
source
### colors
local BLACK=$'%{\e[00;30m%}'
local BLUE=$'%{\e[00;34m%}'
local L_RED=$'%{\e[01;31m%}'
local PURPLE=$'%{\e[00;35m%}'
local RED=$'%{\e[00;31m%}'
local DEFAULT=$'%{\e[00;00m%}'
### set zsh options
setopt correct
setopt nobeep
setopt prompt_subst
setopt share_history
setopt extended_glob
### set env
PATH=~/bin:$PATH
export PATH
PROMPT=$RED'%(!.#.%%) '$DEFAULT
export PROMPT
BLOCKSIZE=K
EDITOR=vim
PAGER=less
export BLOCKSIZE EDITOR PAGER
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
export HISTFILE HISTSIZE SAVEHIST
LSCOLORS=exfxcxdxbxegedabagacad
export LSCOLORS
# LANG=ja_JP.UTF-8
# LANG=C
# LC_ALL=C
# LC_ALL=ja_JP.UTF-8
# export LANG
# export LC_ALL
### load zsh functions
zmodload zsh/mathfunc
### my aliases
# alias cat='cat -n'
alias cp='cp -i'
# alias gcc='gcc42'
alias h='history'
# alias h='history -20'
# alias h3='history -30'
# alias h5='history -50'
# alias h1='history -100'
alias l='ls -l'
alias less='less -N'
alias ls='ls -G --color=auto'
alias ll='ls -l'
alias mv='mv -i'
alias la='ls -A'
alias langc='LANG=C; export LANG'
alias langjp='LANG=ja_JP.utf-8; export LANG'
### compinit
autoload -U compinit
compinit
### login script
setterm -blength 0
~/.zshrc
serial numbered file(sh,bash,zsh)
2008年08月03日 (linux)
command
% touch {1..20}.txt # 1.txt〜20.txtの連番の空のファイルを作成
% rm {11..17}.txt # 11.txt〜17.txtのファイルを削除
note
tcsh, cshなどCシェル系で実行すると1..20.txtという名前のファイルが作成される.