Difference between revisions of "Twm"

From ArchWiki
Jump to navigation Jump to search
(Created page with 'This wiki page details installation and configuration of the twm window manager under Arch Linux. __TOC__ == Introduction == === Twm creation and name === Twm was written by …')
 
 
(55 intermediate revisions by 21 users not shown)
Line 1: Line 1:
This wiki page details installation and configuration of the twm window manager under Arch Linux.
+
[[Category:Stacking WMs]]
 +
[[it:Twm]]
 +
[[ja:Twm]]
 +
Twm is a window manager for [[Xorg]]. It is a small program, being built against Xlib rather than using a widget library, and as such, it is very light on system resources. Though simple, it is highly configurable; fonts, colours, border widths, title bar buttons, etc. can all be set by the user.
  
__TOC__
+
Twm was written by Tom LaStrange, a developer who was frustrated by the limitations of [[wikipedia:UWM_(computing)|uwm (Ultrix Window Manager)]][[http://www.linuxplanet.com/linuxplanet/reports/3000/2/], the only window manager around when X11 was first released. Twm supplanted uwm as the default window manager supplied with X11 from the X11R4 release in 1989, [[wikipedia:UWM_(computing)]].
  
== Introduction ==
+
Twm has stood for ''Tom's Window Manager'', ''Tab Window Manager'' and more recently ''Timeless Window Manager''[[wikipedia:Twm]].
  
=== Twm creation and name ===
+
== Installation ==
 +
 
 +
Twm is provided by the package {{Pkg|xorg-twm}}.
 +
 
 +
== Starting ==
 +
 
 +
Run {{ic|twm}} with [[xinit]].
 +
 
 +
{{Note|On startup there is only a black screen. Try to move your mouse and left click to get a twm menu to make sure that twm actually works.
 +
}}
 +
 
 +
== Configuration ==
  
Twm was written by Tom LaStrange, a developer who was frustrated by the limitations of [http://en.wikipedia.org/wiki/UWM_(computing) uwm (Ultrix Window Manager)][[http://www.linuxplanet.com/linuxplanet/reports/3000/2/], the only window manager around when X11 was first released. Twm supplanted uwm as the default window manager supplied with X11 from the  X11R4 release in 1989[http://en.wikipedia.org/wiki/UWM_(computing)].
+
By default, twm looks very dated and unintuitive. By creating the file {{Ic|~/.twmrc}}, you can customize twm to make it more friendly.
  
== Installation ==
+
{{man|1|twm}}gives full details of the commands which can be used in your {{Ic|~/.twmrc}} file. Many {{Ic|~/.twmrc}} files have been posted online. The site [http://www.xwinman.org/vtwm.php xwinman.org] has several {{Ic|~/.twmrc}} files with screenshots which might provide inspiration. A [https://www.google.com/search?q=twmrc Google search for "twmrc"] can be used to find new ideas.
 +
 
 +
== Tips and tricks ==
 +
 
 +
=== Patched version ===
 +
 
 +
There is a patched version, not in the repositories, with updated features such as transparency. A description and build script is available on the [http://lists.x.org/archives/xorg/2010-January/048401.html xorg mailing list]. It can be tried out by installing [[xcompmgr]], running the build script, putting the resulting {{Ic|twm}} and {{Ic|dot.twmrc}} files in a convenient directory, and editing the {{Ic|~/.xinitrc}} file so that the last two lines are
 +
xcompmgr -o 0.3  -c -r 8 -t -10 -l -12 &
 +
/path-to-directory/twm -visual TrueColor -depth 32 -f /path-to-directory/dot.twmrc
  
== TWM as default window manager ==
+
== Troubleshooting ==
  
== Configuration (editing your .twmrc) ==
+
=== Oversized window titles and menus ===
  
== Resources ==
+
You might find that titlebars and menu entries in TWM are extremely large - twice the size that one might typically expect. This is a [[locale]] issue with TWM that occurs when a {{ic|UTF-8}} locale is used. Setting the locale to {{ic|C}} fixes the issue. See [https://forums.gentoo.org/viewtopic-t-530562-start-0.html].
  
== References ==
+
== See also ==
* Proffitt, Brian. "[http://www.linuxplanet.com/linuxplanet/reports/3000/2/ From the Desktop: Tom LaStrange Speaks!]", ''LinuxPlanet'', February 6, 2001. Retrieved October 22, 2009.
+
* Proffitt, Brian. "[http://www.linuxplanet.com/linuxplanet/reports/3000/2/ From the Desktop: Tom LaStrange Speaks!]", ''LinuxPlanet'', February 6, 2001. Retrieved October 22, 2009.
* "[http://en.wikipedia.org/wiki/UWM_(computing) UWM (computing)]", ''Wikipedia''. Retrieved October 22, 2009.
+
* "[[wikipedia:UWM_(computing)|UWM (computing)]]", ''Wikipedia''. Retrieved October 22, 2009.
 +
* "[[wikipedia:Twm|Twm]]", ''Wikipedia''. Retrieved October 22, 2009.
 +
* {{man|1|twm}} man page
 +
* "[http://www.custompc.plus.com/twm/configs/twmrc09 Sample twmrc]", ''custompc.plus.com''. Retrieved August 12, 2013.
 +
* "[http://xwinman.org/vtwm.php Window Managers for X: TWM/VTWM]", ''xwinman.org''. Retrieved October 22, 2009.
 +
* Kask, Eeri. "[http://lists.x.org/archives/xorg/2010-January/048401.html TWM -- Revised Edition -- Again]", ''lists.x.org'', January 3, 2010.

Latest revision as of 19:40, 27 March 2018

Twm is a window manager for Xorg. It is a small program, being built against Xlib rather than using a widget library, and as such, it is very light on system resources. Though simple, it is highly configurable; fonts, colours, border widths, title bar buttons, etc. can all be set by the user.

Twm was written by Tom LaStrange, a developer who was frustrated by the limitations of uwm (Ultrix Window Manager)[[1], the only window manager around when X11 was first released. Twm supplanted uwm as the default window manager supplied with X11 from the X11R4 release in 1989, wikipedia:UWM_(computing).

Twm has stood for Tom's Window Manager, Tab Window Manager and more recently Timeless Window Managerwikipedia:Twm.

Installation

Twm is provided by the package xorg-twm.

Starting

Run twm with xinit.

Note: On startup there is only a black screen. Try to move your mouse and left click to get a twm menu to make sure that twm actually works.

Configuration

By default, twm looks very dated and unintuitive. By creating the file ~/.twmrc, you can customize twm to make it more friendly.

twm(1)gives full details of the commands which can be used in your ~/.twmrc file. Many ~/.twmrc files have been posted online. The site xwinman.org has several ~/.twmrc files with screenshots which might provide inspiration. A Google search for "twmrc" can be used to find new ideas.

Tips and tricks

Patched version

There is a patched version, not in the repositories, with updated features such as transparency. A description and build script is available on the xorg mailing list. It can be tried out by installing xcompmgr, running the build script, putting the resulting twm and dot.twmrc files in a convenient directory, and editing the ~/.xinitrc file so that the last two lines are

xcompmgr -o 0.3  -c -r 8 -t -10 -l -12 &
/path-to-directory/twm -visual TrueColor -depth 32 -f /path-to-directory/dot.twmrc

Troubleshooting

Oversized window titles and menus

You might find that titlebars and menu entries in TWM are extremely large - twice the size that one might typically expect. This is a locale issue with TWM that occurs when a UTF-8 locale is used. Setting the locale to C fixes the issue. See [2].

See also