afterstep 起動時に好きな壁紙へ変更する方法

Counter (Since Feb./1/'00)

[← Back]


  1. 環境

  2. 解説
    なにもしなければ、最初は灰色の背景になっている。
    
    # ~/.xsession(又は ~/.Xsession)で特定の背景を描くように
    # 指定しても、afterstep が起動した時点で灰色の背景になる。
    
    起動時の背景を、afterstep のポップアップメニュー(背景→壁紙)
    にある Wood に変えてみる。
    
    afterstep の設定ファイルは、~/.steprc である。
    (なければ、/usr/X11R6/lib/X11/afterstep/system.steprc.ja_JP.EUC が使われる)
  3. ~/.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


  4. ~/.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 :
  5. 変更後

    #/////////////////////////#
    # 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
    
    
  6. 注意
    ~/.steprc を変更したため、afterstep が起動しなくなった場合、 別のマシンから post に telnet でログインし、~/.steprc を消すか、 別の名前にする。