.ctwmrc (2668B)
1 # 2 # Stephanos Pavlou's CTWM config 3 # Last modifed: Thu, Mar 21 2024 4 # 5 6 Workspaces 7 { 8 "ws1" 9 "ws2" 10 "ws3" 11 "ws4" 12 } 13 14 Cursors 15 { 16 Frame "left_ptr" 17 Title "left_ptr" 18 Icon "hand" 19 Move "fleur" 20 Menu "sb_left_arrow" 21 Button "hand" 22 } 23 24 TitleFont "-dec-terminal-medium-r-normal-*-14-*-*-*-*-*-*-*" 25 ResizeFont "-dec-terminal-medium-r-normal-*-14-*-*-*-*-*-*-*" 26 MenuFont "-dec-terminal-medium-r-normal-*-14-*-*-*-*-*-*-*" 27 IconFont "-dec-terminal-medium-r-normal-*-14-*-*-*-*-*-*-*" 28 IconManagerFont "-dec-terminal-medium-r-normal-*-14-*-*-*-*-*-*-*" 29 30 BorderWidth 1 31 32 Color 33 { 34 MenuBackground "white" 35 MenuForeground "black" 36 37 BorderColor "grey" 38 39 TitleForeground "black" 40 TitleBackground "white" 41 } 42 43 NoDefaults 44 45 RightTitleButton "~/.ctwmresources/minimize.xbm" = f.iconify 46 RightTitleButton "~/.ctwmresources/maximize.xbm" = f.fullzoom 47 RightTitleButton "~/.ctwmresources/close.xbm" = f.delete 48 49 TitleButtonBorderWidth 0 50 51 Button1 = : root : f.menu "Main" 52 Button1 = : title : f.function "move-or-raise" 53 Button1 = : icon : f.function "move-or-iconify" 54 Button3 = : root : f.menu "Workspace menu" 55 Button3 = m : window | icon : f.resize 56 57 MoveDelta 3 58 Function "move-or-raise" {f.move f.deltastop f.raise} 59 Function "move-or-iconify" {f.move f.deltastop f.iconify} 60 61 "p" = m : all : f.exec "dmenu_run &" 62 "Return" = m | s : all : f.exec "alacritty &" 63 64 "1" = m : all : f.gotoworkspace "ws1" 65 "2" = m : all : f.gotoworkspace "ws2" 66 "3" = m : all : f.gotoworkspace "ws3" 67 "4" = m : all : f.gotoworkspace "ws4" 68 69 "c" = m | s : window : f.delete 70 "q" = m | s : all : f.quit 71 72 Menu "Main" 73 { 74 "CTWM" f.title 75 "Applications" f.title 76 "Internet" f.menu "Internet" 77 "Terminal emulators" f.menu "Terminal emulators" 78 "Text editors" f.menu "Text editors" 79 "Miscellaneous" f.menu "Miscellaneous" 80 "System" f.title 81 "Restart CTWM" ("red" : "white") f.restart 82 "Quit CTWM" ("red" : "white") f.quit 83 } 84 85 Menu "Internet" 86 { 87 "Firefox" f.exec "firefox &" 88 "Qutebrowser" f.exec "qutebrowser &" 89 } 90 91 Menu "Terminal emulators" 92 { 93 "Alacritty" f.exec "alacritty &" 94 "Kitty" f.exec "kitty &" 95 "Terminator" f.exec "terminator &" 96 "Xterm" f.exec "xterm &" 97 } 98 99 Menu "Text editors" 100 { 101 "Code (Open Source Visual Studio Code)" f.exec "code &" 102 } 103 104 Menu "Miscellaneous" 105 { 106 "Xclock" f.exec "xclock &" 107 "Xeyes" f.exec "xeyes &" 108 } 109 110 Menu "Workspace menu" 111 { 112 "Workspace menu" f.title 113 "Workspace 1" f.gotoworkspace "ws1" 114 "Workspace 2" f.gotoworkspace "ws2" 115 "Workspace 3" f.gotoworkspace "ws3" 116 "Workspace 4" f.gotoworkspace "ws4" 117 "Next workspace" f.nextworkspace 118 "Prev workspace" f.prevworkspace 119 }