#obligatory keyboard+mouse controls #Alt (shift)Tab window cycle #Add programs you expect to run here: WindowRing { "XTerm" "firefox" "gimp" "Firefox" } "Tab" = m : all : f.warpring "next" "Tab" = m|s : all : f.warpring "prev" IconFont "-misc-fixed-medium-r-*-*-20-*-*-*-*-*-iso10646-1" ResizeFont "-misc-fixed-medium-r-*-*-20-*-*-*-*-*-iso10646-1" TitleFont "-*-lucidabright-medium-r-*-*-26-*-*-*-*-*-iso10646-1" MenuFont "-*-lucidabright-medium-r-*-*-26-*-*-*-*-*-iso10646-1" BorderWidth 2 ButtonIndent 0 MenuBorderWidth 1 AutoRelativeResize #NoRaiseOnMove #NoRaiseOnResize OpaqueMove NoGrabServer DecorateTransients NoMenuShadows #RandomPlacement ButtonIndent 0 DontSqueezeTitle TitleButtonBorderWidth 0 IconBorderWidth "0" Color { BorderColor "gray" BorderTileBackground "black" DefaultBackground "white" DefaultForeground "black" MenuBackground "white" MenuBorderColor "black" MenuForeground "black" PointerForeground "black" PointerBackground "white" IconBackground "black" IconForeground "gray" IconManagerBackground "black" IconManagerForeground "gray" IconManagerHighlight "gray" } # # Define some useful functions for motion-based actions. # MoveDelta 5 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 "resize-or-raise" { f.resize f.deltastop f.raise } Function "icon-move" { f.move f.deltastop f.deiconify } Button1 = : root : f.menu "twm" Button3 = : root : f.menu "window" Button2 = : frame : f.function "resize-or-iconify" 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 &" #### "XF86AudioRaiseVolume" = : all : f.exec "amixer set Master 2%+" "XF86AudioLowerVolume" = : all : f.exec "amixer set Master 2%-" "XF86AudioMute" = : all : f.exec "amixer set Master toggle" "Left" = m4 : all : f.exec "mpc --host=10.42.7.3 --port=6600 prev" "Right" = m4 : all : f.exec "mpc --host=10.42.7.3 --port=6600 next" "Down" = m4 : all : f.exec "mpc --host=10.42.7.3 --port=6600 toggle" Button1 = : frame | title | icon : f.function "move-or-raise" Button1 = : icon : f.function "icon-move" Button1 = : root : f.menu "root-menu" LeftTitleButton "~/img/menu16" = f.menu "window-operations" RightTitleButton "~/img/escherknot" = f.resize #functions Function "drop-and-iconify" { f.iconify f.lower } #doesn't really do anything Function "makebig" { f.raise f.fullzoom } #maximize and raise NoDefaults TitleButtonBorderWidth 0 ButtonIndent 0 Zoom #WarpUnmapped WarpCursor { "XTerm" } ConstrainedMoveTime 0 #ClientBorderWidth RandomPlacement NoIconManagers menu "window-operations" { "new" f.exec "xterm &" "..." f.title "lower" f.lower "raise" f.raise "maximize" f.function "makebig" "iconify" f.function "drop-and-iconify" "delete" f.delete "..." f.title "rotate" f.menu "rot" "..." f.title "running:" f.menu "TwmWindows" "ops" f.menu "ops" } menu "root-menu" { "fishriotwm" f.title "new" f.exec "xterm &" "browser" f.exec "firefox &" "gimp" f.exec "gimp &" "kbd" f.exec "xvkbd &" "winops" f.title "lower" f.lower "move" f.move "iconify" f.iconify "raise" f.raise "resize" f.resize "..." f.title "rotate" f.menu "rot" "power" f.menu "quit" "..." f.title "running:" f.menu "TwmWindows" } Function "rot-inv" { f.exec "~/bin/rotate.display i" f.restart } Function "rot-lef" { f.exec "~/bin/rotate.display l" f.restart } Function "rot-nor" { f.exec "~/bin/rotate.display" f.restart } Function "rot-rig" { f.exec "~/bin/rotate.display r" f.restart } menu "rot" { "rotate" f.nop "normal" f.function "rot-nor" "left" f.function "rot-lef" "right" f.function "rot-rig" "invert" f.function "rot-inv" } menu "ops" { "browser" f.exec "firefox &" "gimp" f.exec "gimp &" "kbd" f.exec "xvkbd &" "restart" f.restart "quit" f.quit } menu "quit" { "sleep" f.exec "zzz &" "poweroff" f.exec "halt -p" } Cursors { Frame "draft_small" Move "tcross" Resize "tcross" Menu "draft_small" Button "draft_small" Wait "clock" Select "dot" Destroy "dot" }