Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/ctwm/dist replace default ctwmrc by mine from...



details:   https://anonhg.NetBSD.org/xsrc/rev/b4b955e743f5
branches:  trunk
changeset: 10559:b4b955e743f5
user:      nia <nia%NetBSD.org@localhost>
date:      Tue Sep 22 21:08:56 2020 +0000

description:
replace default ctwmrc by mine from tech-x11

diffstat:

 external/mit/ctwm/dist/system.ctwmrc |  498 ++++++++++++++++++++++++----------
 1 files changed, 346 insertions(+), 152 deletions(-)

diffs (truncated from 531 to 300 lines):

diff -r 2603d19cddc1 -r b4b955e743f5 external/mit/ctwm/dist/system.ctwmrc
--- a/external/mit/ctwm/dist/system.ctwmrc      Tue Sep 22 16:20:39 2020 +0000
+++ b/external/mit/ctwm/dist/system.ctwmrc      Tue Sep 22 21:08:56 2020 +0000
@@ -1,181 +1,375 @@
 #
-# $XConsortium: system.twmrc,v 1.8 91/04/23 21:10:58 gildea Exp $
+# $NetBSD: system.ctwmrc,v 1.2 2020/09/22 21:08:56 nia Exp $
+#
+# ctwmrc by nia
 #
-# Default twm configuration file; needs to be kept small to conserve string
-# space in systems whose compilers don't handle medium-sized strings.
+# An attempt to strike a usability balance that makes keys and buttons
+# do the thing users of various operating systems expect them to do.
+#
+# Most things should be possible to accomplish with only the keyboard.
+#
+# Also, mostly inoffensive colours (avoiding potentially inaccessible
+# combinations like red-green).
 #
-# Sites should tailor this file, providing any extra title buttons, menus, etc.
-# that may be appropriate for their environment.  For example, if most of the
-# users were accustomed to uwm, the defaults could be set up not to decorate
-# any windows and to use meta-keys.
+
+# don't use the default buttons or key bindings, we define our own
+NoDefaults
+
+ShowWorkSpaceManager
+ShowIconManager
+
+# 3D icon managers do not seemingly honor IconManagerHighlight,
+# which makes them slightly less useful
+#UseThreeDIconManagers
+#UseThreeDWMap
+UseThreeDBorders
+#UseThreeDMenus
+UseThreeDTitles
+
+ThreeDBorderWidth         3
+
+# TODO: we can use syscmd() in combination with xdpyinfo to detect
+# HiDPI screens and set appropiate fonts.
 #
+# need some good scaled bitmap fonts imported - terminus or spleen
+# would be good candidates
+MenuFont         "-misc-fixed-medium-r-*-*-14-*-*-*-*-*-*-*"
+TitleFont        "-misc-fixed-bold-r-*-*-18-*-*-*-*-*-*-*"
+IconManagerFont  "-misc-fixed-medium-r-*-*-14-*-*-*-*-*-*-*"
+IconFont         "-misc-fixed-bold-r-*-*-18-*-*-*-*-*-*-*"
+ResizeFont       "-misc-fixed-medium-r-*-*-18-*-*-*-*-*-*-*"
+WorkSpaceFont    "-misc-fixed-medium-r-*-*-14-*-*-*-*-*-*-*"
+
+RestartPreviousState
+
+DecorateTransients
+
+# hide window contents while altering windows for performance
+NoOpaqueMove
+NoOpaqueResize
+
+SloppyFocus
+
+AutoOccupy
+AutoRelativeResize
+
+CenterFeedbackWindow
 
 NoGrabServer
-RestartPreviousState
-DecorateTransients
-TitleFont      "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
-ResizeFont     "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
-MenuFont       "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
-IconFont       "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
-IconManagerFont        "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
-ShowWorkSpaceManager                   # start with workspace manager up
-UseThreeDMenus
-UseThreeDTitles
-UseThreeDIconManagers
-UseThreeDBorders
-UseThreeDWMap
-SunkFocusWindowTitle
+
+RaiseOnClick
+
+DontMoveOff
+MoveOffResistance        150
+
+ConstrainedMoveTime       0
+
+IgnoreLockModifier
+
+# Not actually that random.
+# Means that windows do not have to be placed by hand with a mouse,
+# which helps if you are using a keyboard only.
+RandomPlacement          "on"
+
+MoveDelta                 3
+ClearShadowContrast       50
+DarkShadowContrast        50
+MovePackResistance        100
+
+RaiseWhenAutoUnSqueeze
+ShortAllWindowsMenus
+
+#BeNiceToColorMap
+
+NoStackMode
+
+StayUpMenus
+WarpToDefaultMenuEntry
+MenuShadowDepth      1
+
+NoTitleFocus
+
+# warp through all windows in the current workspace
+WindowRing
+WarpRingOnScreen
 
-WorkSpaceManagerGeometry        "360x60+60-0" 4
-WorkSpaces {
-    "One"   {"#686B9F" "white" "DeepSkyBlue3" "white" "xpm:background8.xpm"}
-    "Two"   {"#619AAE" "white" "firebrick" "white" "plaid"}
-    "Three" {"#727786" "white" "brown"}
-    "Four"  {"#8C5b7A" "white" "MidnightBlue"}
+TitleButtonShadowDepth    1
+TitleShadowDepth          1
+TitleButtonBorderWidth    0
+TitlePadding              0
+TitleJustification        "left"
+ButtonIndent              0
+FramePadding             0
+
+LeftTitleButton           ":xpm:dot"      = f.menu "titleops"
+RightTitleButton          ":xpm:resize"   = f.resize
+RightTitleButton          ":xpm:cross"    = f.delete
+
+BorderWidth               4
+BorderShadowDepth         2
+BorderResizeCursors
 
-    "Five"  {"#727786" "white" "firebrick"}
-    "Six"   {"#619AAE" "white" "DeepSkyBlue3"}
-    "Seven" {"#8C5b7A" "white" "chartreuse4"}
-    "Eight" {"#686B9F" "white" "MidnightBlue"}
+MaxIconTitleWidth         120
+NoIconManagerFocus
+IconManagerShadowDepth    1
+IconManagerGeometry       "200x-1-1+0" 1
+IconifyByUnmapping
+
+ReallyMoveInWorkspaceManager
+MapWindowCurrentWorkSpace {  "black", "firebrick" }
+DontToggleWorkSpaceManagerState
+DontWarpCursorInWMap
+NoShowOccupyAll        
+ReverseCurrentWorkspace        
+StartInMapState
+WMgrHorizButtonIndent     0
+WMgrVertButtonIndent      0
+WorkSpaceManagerGeometry  "70x270-4-4" 1 5
+
+WorkSpaces 
+{
+    "1"    { "lavender" "black" "darkslateblue" "white" }
+    "2"    { "lavender" "black" "darkslateblue" "white" }
+    "3"    { "lavender" "black" "darkslateblue" "white" }
+    "4"    { "lavender" "black" "darkslateblue" "white" }
+    "5"    { "lavender" "black" "darkslateblue" "white" }
 }
 
 Color
 {
-    BorderColor           "Red"
-    DefaultBackground     "blue"
-    DefaultForeground     "gray85"
-    BorderTileBackground  "DeepSkyBlue1" {
-       "xterm"         "DeepSkyBlue3"
-    }
-    BorderTileForeground  "Black" {
-       "xterm" "DeepSkyBlue3"
-    }
-    TitleBackground       "DeepSkyBlue1" {
-       "xterm" "DeepSkyBlue3"
-    }
-    TitleForeground       "Black" {
-       "xterm" "White"
-    }
-    MenuBackground        "#686B9F"
-    MenuForeground        "white"
-    MenuTitleBackground   "gray70"
-    MenuTitleForeground   "White"
-    IconBackground        "LightSlateBlue"
-    IconForeground        "White"
-    IconBorderColor       "gray85"
-    IconManagerBackground "DeepSkyBlue1" {"Axe" "DeepSkyBlue3" "xload" "DeepSkyBlue2"}
-    IconManagerForeground "Black"
-    MapWindowBackground   "DeepSkyBlue1" {
-       "root*" "Red"
-       "xterm" "DeepSkyBlue3"
-       "Axe"   "Yellow"
-    }
-    MapWindowForeground   "Black" {
-       "xterm" "White"
-    }
+  BorderColor           "steelblue"
+
+  BorderTileBackground  "lavender"
+  BorderTileForeground  "lavender"
+
+  DefaultBackground     "grey70"
+  DefaultForeground     "black"
+
+  TitleBackground       "lavender"
+  TitleForeground       "black" 
+
+  MenuBackground        "lavender"
+  MenuForeground        "black"
+  MenuTitleBackground   "darkorange"
+  MenuTitleForeground   "black"
+  MenuShadowColor      "gray15"
+
+  IconBackground        "black"
+  IconForeground        "white"
+  IconBorderColor       "gray45"
+
+  IconManagerBackground "lavender"
+  IconManagerForeground "black"
+  IconManagerHighlight  "firebrick"
+
+  MapWindowBackground   "lavender"
+  MapWindowForeground   "black"        
+}
+
+Monochrome
+{
+    BorderColor                "black"
+
+    BorderTileForeground       "black"
+    BorderTileBackground       "white"
+
+    TitleForeground            "black"
+    TitleBackground            "white"
+
+    MenuForeground             "black"
+    MenuBackground             "white"
+    MenuTitleForeground        "black"
+    MenuTitleBackground        "white"
+
+    MapWindowForeground        "white"
+    MapWindowBackground        "white"
+}
+
+menu "NetBSD"
+{
+    "NetBSD"                   f.title
+    ""                         f.separator
+    " Terminal"                        !"uxterm &"
+    " Calculator"              !"xcalc &"
+    " Clock"                   !"xclock -digital &"
+    " XEyes"                   !"xeyes &"
+#    ""                                f.separator
+#    " Applications"           f.menu "appmenu"
+    ""                         f.separator
+    " Restart CTWM"            f.twmrc
+    " Quit"                    f.quit
 }
 
-IconManagerGeometry            "202x300-0+0" 1
-IconManagerDontShow {
-    "WorkSpaceManager"
+# TODO: import and integrate this script
+#syscmd(/usr/X11R7/libexec/ctwm_menu)
+
+menu "titleops"
+{
+    "Window"       f.title
+    ""             f.separator
+    " Iconify"     f.iconify
+    " Resize"      f.resize
+    " Move"        f.move
+    ""             f.separator
+    " Raise"       f.raise
+    " Lower"       f.lower
+    ""             f.separator
+    " Zoom"        f.fullzoom
+    " Zoom-V"      f.zoom
+    " Zoom-H"      f.horizoom
+    ""             f.separator
+    " Kill"        f.destroy
+    " Close"       f.delete
+}
+
+IconManagerDontShow
+{
+} 
+
+OccupyAll 
+{



Home | Main Index | Thread Index | Old Index