Tag Archives: FVWM2

X の日付時計アクセサリ

子供の頃に、「デジタル時計は、針の読み方を忘れるから使ってはいけません」と、よく言われていた。この教育方針には 2 つの矛盾がある・・・詳細には触れないでおくが。

シンプル好きな私としては xclock も好みであるのだが、時計は部屋のいたるところにある。私としては、目を細めながら遠くのカレンダーを見るよりも、デスクトップで日付の確認ができたら嬉しいのだ。希望が叶うアクセサリは無いかと、/usr/ports/x11-clocks/ にある時計アクセサリをいくつか試してみた。その中でも比較的 FvwmButtons で動きそうなものだけを残してみた。(そして私の話にも矛盾がある)

 

  

① x11-clocks/xclock

② x11-clocks/asclock, x11-clocks/asclock-gtk, x11-clocks/asclock-xlib

③ x11-clocks/abclock

④ x11-clocks/astime

⑤ x11-clocks/bclock

⑥ x11-clocks/oclock

⑦ x11-clocks/gtubeclock

⑧ x11-clocks/eyeclock

結局のところ、ぐだぐだ言ってないで、好みに合わせて使えばいいのだ。

 

 

FVWM2 Crystal

デスクトップのデザインを変更するのに、もうひとつ。

x11-wm/fvwm-crystal

# cd /usr/ports/x11-wm/fvwm-crystal
# make config-recursive
# make install clean

の後に、.xsessions を変更。

#!/bin/sh

xterm -geometry 80×35+1+1 &
#fvwm2
fvwm-crystal

で、次の画面のようにかなり綺麗なデスクトップになる。

 

FVWM2 Themes を使ってみる

Fvwm Themes を使うと、FVWM2 の壁紙やウィンドウスタイルを変更することができる。

x11-themes/fvwm-themes

fvwm-themes-0.7.0_4

# cd /usr/ports/x11-themes/fvwm-themes
# make config-recursive
# make install clean

で、下のメッセージが表示された。

fvwm-themes is successfully installed.
        themes and data: in /usr/local/share/fvwm
        shell scripts:   in /usr/local/bin
        manual pages:    in /usr/local/man
Put fvwm-themes-start as the last command of .Xclients/.xinitrc/.xsession

では、.xsession を書き換える。

#!/bin/sh

xterm -geometry 80×35+1+1 &
#fvwm2
fvwm-themes-start

従来の fvwm2 はコメントアウトして、fvwm-themes-start を書き加えて、ログインしなおす。

おお、画面が変わった。マウス左クリックのメニューにテーマ変更のサブメニューが含まれている。

こんなのとか、

こんな具合に、いろいろなデザインが使用できるようになった。

 

FVWM2 の FvwmButtons を 2 つ使う

この画像のように、従来からの画面右下の FvwmButtons の他に、画面右上にも別の FvwmButtons を設置した。

なお、画面右上の FvwmButtons に張り付いているアイコンは、SOFT ICONS から利用させて頂く。

.fvwm2rc

# Styles for various Fvwm modules:
Style “Fvwm*”       !Title,  Sticky, WindowListSkip
Style “Fvwm*”       BorderWidth 2, CirculateSkipIcon, CirculateSkip
Style “FvwmPager”   StaysOnTop
Style “FvwmBanner”  StaysOnTop
Style “FvwmButtons” Icon toolbox.xpm, ClickToFocus, HandleWidth 1
Style “FvwmButtonsSub”  HandleWidth 1

(途中略)

################## Initialization Functions ###################
AddToFunc StartFunction
 + I Module FvwmButtons

AddToFunc StartFunction
 + I Module FvwmButtons FvwmButtonsSub

(途中略)

################## FvwmButtons button-bar ##################
*FvwmButtons: Geometry -1-1
*FvwmButtons: Back bisque3
*FvwmButtons: Rows 1
*FvwmButtons: (Frame 2 Swallow(UseOld) “FvwmPager” “Module FvwmPager 0 0 “)
*FvwmButtons: (2×1 Frame 2 Swallow(UseOld,NoHints,Respawn) “xload” ‘Exec exec xload -bg li
ghtblue3 -fg lightblue4 -update 5 -nolabel’)
*FvwmButtons: (Size 60 60 Frame 2 Swallow(UseOld,NoHints,Respawn) “xclock” ‘Exec exec xclo
ck -bg olivedrab2 -fg black -hd black -hl black -padding 5 -update 1′)

*FvwmButtonsSub: Geometry -10+10
*FvwmButtonsSub: Back None
*FvwmButtonsSub: Columns 1
*FvwmButtonsSub: (Frame 0 Padding 10 4 Title “” Icon /home/regza/icon/term.png Action ‘Exe
c exec xterm &’)
*FvwmButtonsSub: (Frame 0 Padding 10 4 Title “” Icon /home/regza/icon/firefox.png Action ‘
Exec exec firefox3 &’)
*FvwmButtonsSub: (Frame 0 Padding 10 4 Title “” Icon /home/regza/icon/mail.png Action ‘Exe
c exec sylpheed &’)
*FvwmButtonsSub: (Frame 0 Padding 10 4 Title “” Icon /home/regza/icon/magik.png Action ‘Ex
ec exec display &’)
*FvwmButtonsSub: (Frame 0 Padding 10 4 Title “” Icon /home/regza/icon/graph.png Action ‘Ex
ec exec gimp &’)
*FvwmButtonsSub: (Frame 0 Padding 10 4 Title “” Icon /home/regza/icon/ascii.png Action ‘Ex
ec exec gvim &’)
*FvwmButtonsSub: (Frame 0 Padding 10 4 Title “” Icon /home/regza/icon/write.png Action ‘Ex
ec exec gedit &’)
*FvwmButtonsSub: (Frame 0 Padding 10 4 Title “” Icon /home/regza/icon/drive.png Action ‘Ex
ec exec rox &’)

 

FVWM2 の壁紙

FVWM2 の壁紙を変更する場合も .fvwm2rc を書きかえる。

######################## Initialization Functions ########################
AddToFunc StartFunction
 + I Module FvwmButtons

#AddToFunc InitFunction
# + I exec xsetroot -mod 2 2 -fg rgb:55/40/55 -bg rgb:70/50/70

AddToFunc InitFunction
  + I exec display -window root /home/regza/image/C00215-002K-1024.jpg

今回も、.foto project から無料素材を利用させた頂いた。