Trisquel .ctwmrc
*Note as stated previously for ctwm to function correctly its needed to install ctwm via 'sudo apt install ctwm' on Trisquel and add a text file called ctwm.desktop as root ( or via sudo ) to /usr/share/xsessions. This can be done by doing 'sudo touch /usr/share/xsessions/ctwm.desktop then opening that blank file as root either using nano or mousepad( in lxde) or your text editor of choice so ' sudo mousepad /usr/share/xsessions/ctwm.desktop ' then add these lines
[Desktop Entry]
Version=1.0
Type=Application
Name=CTWM
Comment=Claude's Tab Window Manager for the X Window System
Exec=ctwm
Icon=ctwm
Terminal=false
StartupNotify=false
Categories=Application;
save the file and exit then add the configuration file below into the users home folder. Its a hidden file when saved as .ctwmrc so to edit it either unhide hidden files from a file manager such as pcmanfm or just do ' nano .ctwmrc' from a terminal opened in the home folder of the user or even from a terminal anywhere 'nano /home/username/.ctwmrc' .
The configuration file below does not include the recent modifications to suda-xdotool-test-2.sh to the version which seeks for vim and gains focus, though this could be added by changing the menu items in a text editor as the configuration file is fully and simply editable using any text editor like nano, mousepad or geany ( though avoid ones which can alter the character encoding of the file on saving).
#---------------------------------------------------------# EMERGENCY# This line is here so that U will be able 2 restart CTWM# even if the rest of the file doesn't work very well!# To restart in emergency press shift and F9 !#---------------------------------------------------------
"F9" = s : r|w|t|m|f : f.twmrc #shift "L2": source .ctwmrc#---------------------------------------------------------
NoGrabServer#NoDefaultsRestartPreviousStateDecorateTransientsTitleFont "-*-unifont-medium-*-normal-*-*-*-*-*-*-*-*-15"ResizeFont "-*-unifont-medium-*-normal-*-*-*-*-*-*-*-*-15"MenuFont "-*-unifont-medium-*-normal-*-*-*-*-*-*-*-*-15"IconFont "-*-unifont-medium-*-normal-*-*-*-*-*-*-*-*-15"IconManagerFont "-*-unifont-medium-*-normal-*-*-*-*-*-*-*-*-15"#ClientBorderWidth 2BorderWidth 3ButtonIndent 2NoHighlightAutoRelativeResize#DefaultBackgroundFramePadding 0#ForceIconsNoRaiseOnMoveOpaqueMoveZoom 500
######## BEGIN STEVE LITT'S MODERNIZATTION SETTINGS #########ClickToFocus # Prevent mouse movement changing focusRaiseOnClick # Window rises when clickedRaiseOnClickButton 1 # When clicked with button 1, that is.UsePPosition "on" # Help kbd instantiated windows get focusRandomPlacement "on" # Help kbd instantiated windows get focusAutoFocusToTransients # Help kbd instantiated windows get focus#WindowRing # Enable Alt+Tab type window circulation#WarpRingOnScreen # Enable Alt+Tab type window circulationIgnoreCaseInMenuSelection # Make menus much easier via keyboardShortAllWindowsMenus # Don't show iconmgr and workspace mgr in lists
######## END STEVE LITT'S MODERNIZATION SETTINGS #########
#---------------------------------------------------------
#---------------------------------------------------------# PIXMAP CONFIG and# PIXMAPS#---------------------------------------------------------
PixmapDirectory "/usr/share/ctwm/images" # dir. for xpms
Pixmaps{ #TitleHighLight "xpm:blue4.xpm"}{# ---------------# Managers# ---------------# this section for bars on right side showing open or minimised windows like taskbar in win or |#lxde ShowIconManagerSortIconManagerIconManagerGeometry "64x128-0+0" 1
}
# This is for hiding the ugly menubar in windows who dont need em.NoTitle{ # "xosview"}
Color{ BorderColor "gray85" DefaultBackground "black" DefaultForeground "gray85" TitleBackground "black" TitleForeground "gray85" MenuBackground "black" MenuForeground "gray85" MenuTitleBackground "gray65" MenuTitleForeground "black" IconBackground "black" IconForeground "white" IconBorderColor "black" IconManagerBackground "black" IconManagerForeground "gray85" }
## Define some useful functions for motion-based actions.#MoveDelta 1Function "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 }
## Set some useful bindings. Sort of uwm-ish, sort of# simple-button-ish#Button1 = : root : f.menu "prg"Button2 = : root : f.deleteButton3 = : root : f.menu "window"
#........................................................................## This is for the buttons in the window bar
#........................................................................#
}
}
}
Icons{ #"XTerm" "/usr/share/ctwm/images/term.xpm" }
Cursors{ Frame "left_ptr" Title "left_ptr" Icon "left_ptr" IconMgr "left_ptr" Move "fleur" Resize "fleur" Menu "hand1" Button "hand2" Wait "clock" Select "dot" Destroy "pirate"}