Solved TWM no window icons

Hi. I am newbie on twm and I watched RoboNuggie's twm video and configured twm with the video. There is IconDirectory option but it didn't seem to work when I set it to ~/.icons (symlinked to /usr/local/share/icons/). This is how it look.
2024-06-18-222924_1366x768_scrot.png
WhatsApp Image 2024-06-18 at 10.46.52 PM.jpeg



~/.twmrc

Code:
UsePPPosition
NoGrabServer
RestartPreviousState
DecorateTransients
OpaqueMove
WarpUnMapped
RandomPlacement
NoSaveUnders
MenuBorderWidth 1
TitleButtonBorderWidth 0

LeftTitleButton "resize.xbm"=f.resize
RightTitleButton "minimize.xbm"=f.iconify
RightTitleButton "maximize.xbm"=f.fullzoom
RightTitleButton "close.xbm"=f.delete

IconDirectory    "/home/yusuf/.icons/"
TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"

NoTitle { "xclock" }
NoHighlight { "xclock" }

Color
{
    DefaultBackground    "maroon"
    DefaultForeground    "gray85"
    TitleBackground    "maroon"
    TitleForeground    "gray85"
    MenuBackground    "maroon"
    MenuForeground    "gray85"
    MenuTitleBackground    "gray70"
    MenuTitleForeground    "maroon"
    IconBackground    "maroon"
    IconForeground    "gray85"
    IconBorderColor    "gray85"
    IconManagerBackground    "maroon"
    IconManagerForeground    "gray85"
}

Cursors {
    Frame    "top_left_arrow"
    Title    "top_left_arrow"
    Icon    "top_left_arrow"
    IconMgr    "top_left_arrow"
    Move    "fleur"
    Resize    "fleur"
    Menu    "sb_left_arrow"
    Button    "hand2"
    Wait    "watch"
    Select    "dot"
    Destroy    "pirate"
}

MoveDelta 3
Function "move-or-lower" { f.move f.deltastop f.lower }
Function "move-or-raise" { f.move f.deltastop f.raise }
Function "move-or-iconify" { f.move f.deltastop f.iconify }

Button1 = : root : f.menu "defops"
Button2 = : root : f.menu "system"
Button3 = : root : f.menu "programs"
Button1 = m : window|icon : f.function "move-or-lower"
Button2 = m : window|icon : f.iconify
Button3 = m : window|icon : f.function "move-or-raise"
Button1 = : title : f.function "move-or-raise"
Button2 = : title : f.raiselower
Button1 = : icon : f.function "move-or-iconify"
Button2 = : icon : f.iconify
Button1 = : iconmgr : f.iconify
Button2 = : iconmgr : f.iconify
Button1 = : frame : f.resize

menu "defops"
{
"Twm"    f.title
"Iconify"    f.iconify
"Resize"    f.resize
"Move"    f.move
"Raise"    f.raise
"Lower"    f.lower
""    f.nop
"Focus"    f.focus
"Unfocus" f.unfocus
"Show Iconmgr"     f.showiconmgr
"Hide Iconmgr"    f.hideiconmgr
""    f.nop
"Xterm"    f.exec "exec xterm &"
""    f.nop
"Kill"    f.destroy
"Delete"    f.delete
""    f.nop
"Restart"    f.restart
"Exit"    f.quit
}

menu "programs"
{
"Programs"    f.title
"Firefox"    f.exec    "firefox &"
"Keepassxc"    f.exec    "keepassxc &"
"Sylpheed"    f.exec    "sylpheed &"
"Moc"        f.exec    "xterm -e mocp &"
"Xterm"        f.exec    "xterm &"
""    f.nop
"Internet"    f.menu    "internet"
"Office"    f.menu    "office"
"Multimedia"    f.menu    "multimedia"
""    f.nop
"Home"        f.exec    "rox &"
""    f.nop
"System"    f.menu    "system"
}

menu "system"
{
"Twm Config"    f.exec    "xterm -e ee .twmrc &"
}
 
In the screenshot it complains about line 2 "ignoring unknown keyword : useppposition [...]"
twm(1):
Code:
	 UsePPosition string
	       This variable specifies whether or not twm  should  honor  pro-
	       gram-requested  location
You have a typo in .twmrc; try with exactly two "P"-s:
Code:
UsePPosition
 
Thanks, I fixed the typo. I learnt that I can made my own bitmap images with graphics/xpaint, so, I did. It doesn't look good too much but they at least appear. I think there are missing bitmap images. I wonder where can i get those bitmap images.

2024-06-19-153610_1366x768_scrot.png
 
Back
Top