#RandomPlacement "yes" UsePPosition "on" StartIconified #ShowIconManager RestartPreviousState Color { BorderColor "#425D4F" BorderTileBackground "#0C1111" BorderTileForeground "#425D4F" MenuBackground "#0C1111" MenuForeground "#425D4F" IconBackground "#0C1111" IconForeground "#425D4F" TitleBackground "#425D4F" TitleForeground "#0C1111" DefaultBackground "#0C1111" DefaultForeground "#425D4F" IconManagerBackground "#0C1111" IconManagerForeground "#425D4F" MenuFont "*-fixed-*-*-*-8-*" IconFont "*-fixed-*-*-*-8-*" IconManagerFont "*-fixed-*-*-*-8-*" ResizeFont "*-fixed-*-*-*-8-*" TitleFont "*-fixed-*-*-*-8-*" } # # Define some useful functions for motion-based actions. # MoveDelta 3 Function "resize-or-lower" { f.resize f.deltastop f.lower } Function "resize-or-raise" { f.resize f.deltastop f.raise } Function "move-or-raise" { f.move f.deltastop f.raise } Function "move-or-lower" { f.move f.deltastop f.lower } Function "move-or-iconify" { f.move f.deltastop f.iconify } # # Set some useful bindings. I've modified these to my preferences. # I don't use the menu system because it glitches out when using xcompmgr. # #Button1 = : root : f.menu "defops" Button1 = : root : f.exec "exec dmenu_run &" #Button1 = m4 : root : f.exec "exec &" Button2 = : root : f.destroy Button3 = : root : f.delete Button3 = m4 : root : f.restart Button1 = m4 : window|icon : f.function "move-or-raise" Button2 = m4 : window|icon : f.iconify "t" = m4 : window : f.exec "exec transset -a &" Button3 = m4 : window|icon : f.function "resize-or-lower" Button1 = : title : f.function "move-or-raise" Button2 = : title : f.raiselower Button3 = : title : f.resize Button3 = m4 : title : f.delete Button1 = : icon : f.function "move-or-iconify" Button3 = : icon : f.delete Button1 = : iconmgr : f.iconify Button3 = : iconmgr : f.delete # # Menus with the usual things. Disabled due to not playing nice with # transparency through xcompmgr. # 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 } # Add a title to some applications that won't have them otherwise. MakeTitle { "wpa_gui" # Haha, this doesn't actually work! >w< } # Set the icon directory to pull icons from. # It's currently set to where I keep my icons. IconDirectory "/home/fck317/.local/share/icons/ouro" # Don't allow any icons except the ones set below, if set. ForceIcons # Set the icons we will show. Icons { "xterm" "snek-term.xbm" "st" "snek-term.xbm" "qterminal" "snek-term.xbm" "login" "snek-lgin.xbm" "claws-mail" "snek-mail.xbm" "gimp" "snek-draw.xbm" "inkscape" "snek-draw.xbm" "Falkon" "ouro-inet.xbm" "netsurf" "ouro-inet.xbm" "Netsurf-gtk3" "ouro-inet.xbm" "qutebrowser" "ouro-inet.xbm" "qbittorrent" "snek-trnt.xbm" "Twinkle" "snek-phne.xbm" "blink" "snek-phne.xbm" "mpv" "snek-film.xbm" "ristretto" "snek-film.xbm" "syncplay" "snek-film.xbm" "pavucontrol" "snek-spkr.xbm" "poezio" "snek-chat.xbm" "telegram-desktop" "snek-chat.xbm" "Discord" "snek-chat.xbm" "Battery" "snek-batt.xbm" "xclock" "snek-time.xbm" "qpwgraph" "snek-node.xbm" } # To keep our icons neat looking, let's go ahead and define a region. IconRegion "50x500+0-0" South West 10 10 IconRegion "400x40+0+0" North West 10 10 IconRegion "200x50-0-0" South East 10 10 IconRegion "200x50-160-0" South East 10 10 IconRegion "200x50-320-0" South East 10 10 IconRegion "200x50-0-50" South East 10 10 IconRegion "200x50-160-50" South East 10 10 IconRegion "200x50-320-50" South East 10 10 IconRegion "200x50-0-100" South East 10 10 IconRegion "200x50-160-100" South East 10 10 IconRegion "200x50-320-100" South East 10 10 IconRegion "800x400+60-0" South West 10 10 IconRegion "400x400-0-200" South East 10 10