- 環境
- FreeBSD 2.2.8-RELEASE
- afterstep-i18n-1.0(ウインドウマネージャ)
- 解説
なにもしなければ、最初は灰色の背景になっている。
# ~/.xsession(又は ~/.Xsession)で特定の背景を描くように
# 指定しても、afterstep が起動した時点で灰色の背景になる。
起動時の背景を、afterstep のポップアップメニュー(背景→壁紙)
にある Wood に変えてみる。
afterstep の設定ファイルは、~/.steprc である。
(なければ、/usr/X11R6/lib/X11/afterstep/system.steprc.ja_JP.EUC が使われる)
- ~/.steprc ファイルの準備
$ ls -a ~ をしてみて ~/.steprc がなければ、
/usr/X11R6/lib/X11/afterstep/system.steprc.ja_JP.EUC をとってくる。
$ cp /usr/X11R6/lib/X11/afterstep/system.steprc.ja_JP.EUC ~/.steprc
- ~/.steprc ファイルの編集
$ mule ~/.steprc
変更前
# 03/08/97 sample.steprc v2.0 fsf ffejes@midway.uchicago.edu
############################################
# The AfterStep v1.0 Default Configuration #
############################################
:
[途中省略]
:
#/////////////////////////#
# Initialization Function #
#/////////////////////////#
# Here we will put programs and modules that we wish to
# load up automatically upon startup
Function "InitFunction"
# Wait until Wharf is done loading so that our xterm will have
# the focus when it is first created
Wait "I" Wharf
#Exec "I" exec kterm -T 'KTerm' &
# Place the green carpet image onto the background upon startup
# I personally recommend xli/xloadimage, but xv seems to be
# ubiquitous in the unix world so I'll use that
# Exec "I" exec xli -quiet -onroot /usr/X11R6/lib/X11/afterstep/backgrounds/carpet.green.jpg
Exec "I" exec xsetroot -solid DarkGrey
EndFunction
:
変更後
#/////////////////////////#
# Initialization Function #
#/////////////////////////#
# Here we will put programs and modules that we wish to
# load up automatically upon startup
Function "InitFunction"
# Wait until Wharf is done loading so that our xterm will have
# the focus when it is first created
Wait "I" Wharf
#Exec "I" exec kterm -T 'KTerm' &
# Place the green carpet image onto the background upon startup
# I personally recommend xli/xloadimage, but xv seems to be
# ubiquitous in the unix world so I'll use that
# Exec "I" exec xli -quiet -onroot /usr/X11R6/lib/X11/afterstep/backgrounds/carpet.green.jpg
# Exec "I" exec xsetroot -solid DarkGrey
Exec "I" exec xli -quiet -onroot /usr/X11R6/lib/X11/afterstep/backgrounds/wood.jpg
EndFunction
- 注意
~/.steprc を変更したため、afterstep が起動しなくなった場合、
別のマシンから post に telnet でログインし、~/.steprc を消すか、
別の名前にする。