QUOTE(fJok3R @ May 22 2011, 07:21 PM)
it just arises more question than what have been answered
so a few more question if u dont mind
1- i run fc-list in terminal, showing all available font, now how to use it in scrotwm.conf, just copy paste the name?
2- what else need to be customized, i supposed not scrotwm.conf alone?
and mind sharing the scrotwm.conf for this one

Okay, I need to make one thing clear. ScrotWM is your quintessential BSD project, meaning that everything is easy in terms of syntax (no need programming language), but it's designed so tightly that if you want any added functionality, it becomes way harder than other WMs like Awesome or Xmonad, since you'll need to hack the source code (you need programming know-how for this) . My actual scrotwm.conf appears very simple, but the way it behaves is totally different thanks to the various hacks I've applied (note: hacks and patches are different beasts... hacks are dirty and buggy).
Anyway, I edited out all the hack-related syntax and pasted the base .scrotwm.conf below for you. Colors are the same as in the screenshot, to go with the terminal .Xdefaults (also attached below).
Now, on to your questions;
1.
fc-list will give you the XFT names for all the fonts you have installed on your system. Unless you have the CVS build of ScrotWM (need to sync with CVS, meaning most probably not available via your package manager unless you use ArchLinux's AUR), you'll need to use the font ISO codes for ScrotWM to recognize the fonts (same for Dmenu, which the scrot bar interfaces with).
ISO codes aren't available for all fonts, sadly. Try launching 'xfontsel' (in terminal or via Dmenu) to see what fonts you have available to you.
For example;
For smallest Terminus, size, most people use:
-*-terminus-medium-r-normal-*-12-120-72-72-c-60-iso8859-1
The one I used in that screenshot is Fixed (or Fixed-Sys, as some people call it). It's a bit special in that it most probably wont show in xfontsel or fc-list, but you definitely have it because it's the standard typeface for the X Window System ... meaning; if you have X, you definitely have Fixed-Sys.
http://en.wikipedia.org/wiki/Fixed_%28typeface%292.
Yeah, there are definitely other things that you'll need to customize. What you see in the screenshot, I have "Most" installed for coloured Man pages, custom MPD and Ncmpcpp configs for the colors and visualizer in the music player (as well as equalization). a custom Vim theme (right side), and a slightly tweaked weechat.conf (IRC client at bottom). All this requires individual tweaking of each app's config/theme file, and so on.
Anyways, here's a basic .scrotwm.conf
CODE
# colors for focussed and unfocussed window borders
color_focus = rgb:ff/ff/ff
color_unfocus = rgb:33/33/33
# bar settings
bar_enabled = 1
bar_border[1] = rgb:cc/66/66
bar_font_color[1] = rgb:fe/fe/fe
bar_color[1] = rgb:cc/66/66
bar_font = -Misc-Fixed-Medium-R-Semicondensed-*-12-110-75-75-C-60-ISO10646-1
#bar_font = -*-terminus-medium-r-normal-*-12-120-72-72-c-60-iso8859-1
#bar_at_bottom =1
bar_action = conky
bar_delay = 1
stack_enabled = 1
clock_enabled = 1
title_name_enabled = 0
title_class_enabled = 0
# spawn app
program[term] = urxvtc
# program[screenshot_all] = screenshot.sh full
# program[screenshot_wind] = screenshot.sh window
# program[lock] = xlock
# program[initscr] = initscreen.sh
program[menu] = dmenu_run -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_font_color -sf $bar_color
spawn_term = urxvtc
# dialog box size ratio .3 >= r < 1
dialog_ratio = 0.6
# Split a non-Xrandr dual head setup into one region per monitor
# (non-standard driver-based multihead is not seen by scrotwm)
# region = screen[1]:1280x1024+0+0
# region = screen[1]:1280x1024+1280+0
# mod key, (windows key is Mod4) (apple key on OSX is Mod2)
modkey = Mod4
# key bindings
#unbind with: bind[] = <keys>
bind[cycle_layout] = MOD+space
bind[stack_reset] = MOD+Shift+space
bind[master_shrink] = MOD+-
bind[master_grow] = MOD+=
bind[master_add] = MOD+comma
bind[master_del] = MOD+period
bind[stack_inc] = MOD+Shift+comma
bind[stack_dec] = MOD+Shift+period
bind[swap_main] = MOD+Return
bind[focus_next] = MOD+j
bind[focus_prev] = MOD+k
bind[swap_next] = MOD+Shift+j
bind[swap_prev] = MOD+Shift+k
bind[spawn_term] = MOD+Shift+Return
bind[menu] = MOD+p
bind[quit] = MOD+Shift+q
bind[restart] = MOD+q
bind[focus_main] = MOD+m
bind[ws_1] = MOD+1
bind[ws_2] = MOD+2
bind[ws_3] = MOD+3
bind[ws_4] = MOD+4
bind[ws_5] = MOD+5
bind[ws_6] = MOD+6
bind[ws_7] = MOD+7
bind[ws_8] = MOD+8
bind[ws_9] = MOD+9
bind[ws_10] = MOD+0
bind[ws_next] = Mod+Shift+Right
bind[ws_prev] = Mod+Shift+Left
#bind[screen_next] = MOD+Shift+Right
#bind[screen_prev] = MOD+Shift+Left
bind[mvws_1] = MOD+Shift+1
bind[mvws_2] = MOD+Shift+2
bind[mvws_3] = MOD+Shift+3
bind[mvws_4] = MOD+Shift+4
bind[mvws_5] = MOD+Shift+5
bind[mvws_6] = MOD+Shift+6
bind[mvws_7] = MOD+Shift+7
bind[mvws_8] = MOD+Shift+8
bind[mvws_9] = MOD+Shift+9
bind[mvws_10] = MOD+Shift+0
bind[bar_toggle] = MOD+Shift+b
bind[focus_next] = MOD+Tab
bind[focus_prev] = MOD+Shift+Tab
bind[wind_kill] = MOD+Shift+x
bind[wind_del] = MOD+x
#bind[screenshot_all] = MOD+s
#bind[screenshot_wind] = MOD+Shift+s
bind[float_toggle] = MOD+t
#bind[version] = MOD+Shift+v
#bind[lock] = MOD+Shift+Delete
#bind[initscr] = MOD+Shift+i
# quirks
# remove with: quirk[class:name] = NONE
quirk[MPlayer:xv] = FLOAT + ANYWHERE + FULLSCREEN
quirk[Thunar:thunar] = FLOAT + ANYWHERE
quirk[Gcolor2:gcolor2] = FLOAT + ANYWHERE
#quirk[OpenOffice.org 2.4:VCLSalFrame] = FLOAT
#quirk[OpenOffice.org 3.0:VCLSalFrame] = FLOAT
#quirk[OpenOffice.org 3.1:VCLSalFrame] = FLOAT
quirk[Firefox-bin:firefox-bin] = FLOAT + FULLSCREEN
quirk[Firefox:Dialog] = FLOAT + ANYWHERE
quirk[Gimp:gimp] = FLOAT + ANYWHERE
#quirk[XTerm:xterm] = XTERM_FONTADJ
quirk[xine:Xine Window] = FLOAT + ANYWHERE
quirk[Xitk:Xitk Combo] = FLOAT + ANYWHERE
quirk[xine:xine Panel] = FLOAT + ANYWHERE
quirk[Xitk:Xine Window] = FLOAT + ANYWHERE
quirk[xine:xine Video Fullscreen Window] = FULLSCREEN + FLOAT
quirk[pcb:pcb] = FLOAT
# EXAMPLE: define firefox program and bind to key
bind[firefox] = MOD+f
and a basic .Xdefaults file for your terminal colorscheme (note: requires rxvt-unicode-256color to be installed)
CODE
urxvt*title: urxvt
urxvt*termName: rxvt-256color
!urxvt*font: -*-terminus-medium-r-normal-*-12-120-72-72-c-60-iso8859-1
!urxvt*boldFont: -*-terminus-medium-r-normal-*-12-120-72-72-c-60-iso8859-1
urxvt*font: -Misc-Fixed-Medium-R-Semicondensed-*-12-110-75-75-C-60-ISO10646-1
urxvt*boldFont: -Misc-Fixed-Medium-R-Semicondensed-*-12-110-75-75-C-60-ISO10646-1
urxvt*background: #333333
urxvt*foreground: #CCCCCC
urxvt*cursorColor: #999999
urxvt*colorBD: #FFFFFF
urxvt*colorUL: #CCCCFF
urxvt*scrollBar: false
urxvt*secondaryscroll: true
urxvt*matcher.button: 1
urxvt*cursorBlink: true
urxvt*cursorUnderline: true
urxvt*internalBorder: 3
urxvt.perl-ext-common: default,clipboard,matcher
urxvt.transparent: false
urxvt*allow_bold: true
Xft*dpi: 96
Xft*antialias: false
Xft*hinting: full
urxvt*dynamicColors: on
urxvt*depth: 24
urxvt*mapAlert: true
urxvt*visualBell: true
urxvt*urgentOnBell: true
urxvt*inheritPixmap: false
!urxvt*tintColor: #333333
!urxvt*shading: 80
!urxvt*geometry: 80x17
!BLACK
urxvt*color0: #666666
urxvt*color8: #999999
!RED
urxvt*color1: #CC6666
urxvt*color9: #FF9999
!GREEN
urxvt*color2: #99CC66
urxvt*color10: #99FF99
!YELLOW
urxvt*color3: #CC9966
urxvt*color11: #FFFF99
!BLUE
urxvt*color4: #6699CC
urxvt*color12: #99CCFF
!MAGENTA
urxvt*color5: #CC6699
urxvt*color13: #FF99CC
!CYAN
urxvt*color6: #66CCCC
urxvt*color14: #99FFFF
!WHITE
urxvt*color7: #CCCCCC
urxvt*color15: #FFFFFF
Hope this gets you started.
Cheers

Edit: Sorry for the messy config ... dunno why LYN forum doesn't align stuff properly. O_o?
This post has been edited by G-17: May 23 2011, 02:59 PM