# # 9twm -- A Plan9/9wm theme for twm by way of mofications to # .twmrc and .xinitrc. # # Version 1.0 # # By James Deagle (james.deagle@yahoo.com) # # This file is public domain. # # "Dilige et quod vis fac." -Augustine of Hippo # # August 31, 2009 # # For best results, your .xinit should include the following: # # xsetroot -solid gray -cursor_name draft_small # xload -g 300x125+0+0 -fg purple -update 3 & # twm # FUCKED UP BY KURT # FISHLINUCSISED BY PRAHOU // 2025-05-18 # Border operations work like rio. # Metakey window operations like cwm defaults. # C(trl),M(alt),S(shift) #Mouse (for windows and icons): # M+Mouse1 : Move window, click2raise window # M+Mouse2 : Resize window, click2(de)iconify # M+Mouse3 : Resize window, click2lower #Keyboard # C+M+Return : spawn xterm # C+M+f : fullscreen current window # C+M+m : fullscreen current window # M+Return : iconify # C+M+S+Slash : dmenu_run \\ exec cmd # C+M+S+r : restart twm # C+M+x : delete window # C+M+S+q : quit twm # M+S+l : xlock #Alt (shift)Tab window cycle #Add programs you expect to run here: WindowRing { "XTerm" "firefox" "gimp" } "Tab" = m : all : f.warpring "next" "Tab" = m|s : all : f.warpring "prev" NoGrabServer NoCaseSensitive DecorateTransients RandomPlacement MenuFont "-misc-fixed-medium-r-*-*-20-*-*-*-*-*-iso10646-1" IconFont "-misc-fixed-medium-r-*-*-20-*-*-*-*-*-iso10646-1" ResizeFont "-misc-fixed-medium-r-*-*-20-*-*-*-*-*-iso10646-1" BorderWidth 4 ButtonIndent 2 MenuBorderWidth 3 AutoRelativeResize NoRaiseOnMove NoRaiseOnResize OpaqueMove NoTitle NoMenuShadows IconBorderWidth "0" IconManagerGeometry "=1920x10+800+5" 10 Color { BorderColor "gray" BorderTileBackground "black" DefaultBackground "white" DefaultForeground "black" MenuBackground "black" MenuBorderColor "gray" MenuForeground "gray" PointerForeground "black" PointerBackground "white" IconBackground "black" IconForeground "gray" IconManagerBackground "black" IconManagerForeground "gray" IconManagerHighlight "gray" } # # Define some useful functions for motion-based actions. # MoveDelta 1 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 } Function "resize-or-iconify" { f.resize f.deltastop f.iconify } Function "resize-or-lower" { f.resize f.deltastop f.lower } Function "icon-move" { f.move f.deltastop f.deiconify } Button2 = : root : f.menu "twm" Button3 = : root : f.menu "window" Button1 = : frame : f.resize Button2 = : frame : f.resize Button3 = : frame : f.function "move-or-lower" Button1 = : icon : f.function "icon-move" Button3 = : icon : f.lower Button1 = m : window | icon : f.function "move-or-raise" Button2 = m : window | icon : f.function "resize-or-iconify" Button3 = m : window | icon : f.function "resize-or-lower" #DEFAULT CWM KEYBIDINGS "f" = m|c : window : f.fullzoom "m" = m|c : window : f.fullzoom "Return" = m|c : all : f.exec "xterm &" "Return" = m : window : f.iconify "slash" = m|s : all : f.exec "dmenu_run &" "r" = m|s|c : all : f.restart "x" = m|c : window | icon : f.delete "q" = m|c|s : all : f.quit "l" = m|s : all : f.exec "xlock &" menu "twm" { "Show Mgr" f.showiconmgr "Hide Mgr" f.hideiconmgr "Restart " f.restart "Lock " f.exec "xlock &" "Browser" f.exec "firefox &" } menu "window" { "New" f.exec "xterm &" "Resize" f.resize "Move" f.move "Maximize" f.fullzoom "Iconify" f.iconify "Delete" f.delete "Hide" f.iconify "Lower" f.lower "Raise" f.raise "Quit" f.quit } Cursors { Frame "draft_small" Move "tcross" Resize "tcross" Menu "draft_small" Button "draft_small" Wait "clock" Select "dot" Destroy "dot" }