twang(6)
π twang(6) β like, the plucking-your-screen situation
okay bestie, welcome to twang, straight out of the XScreenSaver manual β¨ this is a little program that divides your screen into tiles and then, yeah, plucks them. it's giving string-instrument energy on a grid. iykyk π
β¨ NAME β¨
twang β pluck pieces of the screen πΈ
π¦ SYNOPSIS π¦
twang [--display host:display.screen] [--foreground color] [--background
color] [--window] [--root] [--window-id number] [--mono] [--install]
[--visual visual] [--shm] [--no-shm] [--delay usecs] [--duration secs]
[--border-color color] [--border-width integer] [--event-chance
fraction] [--friction fraction] [--springiness fraction] [--tile-size
integer] [--transference fraction] [--fps]
πΈ DESCRIPTION πΈ
So here's the whole vibe: twang takes the screen and chops it into equal-sized tiles, and then it plucks them in various ways π«Ά. The tiles are affected by their neighbors, which means waves of motion literally flow through the grid β it's giving ripple-on-a-jumprope, and honestly? iconic πβ¨
Little housekeeping note before we go any further: this manpage describes v1.3 of the program, fr fr.
π OPTIONS π
twang accepts the following options, and there are a lot of them, so buckle up buttercup:
--windowβ Draw on a newly-created window. This is the default, so if you don't say anything, this is what you get π--rootβ Draw on the root window.--window-idnumber β Draw on the specified window, like, this exact one.--monoβ If on a color display, pretend we're on a monochrome display π (yes, pretend. it's a bit delulu but it slays on purpose)--installβ Install a private colormap for the window.--visualvisual β Which visual to use. Legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual.--shm,--no-shmβ Use the shared memory extension (or not, respectively), if available. This may speed things up a bit, but probably won't make that much difference. If available, defaults to true, resourceuseSHM.--delaymicroseconds β The interframe delay, in microseconds. Defaults to10000, resourcedelay. β±οΈ--durationseconds β How long to run before loading a new image. Default120seconds.--border-colorcolor β Color of the border surrounding each tile. Defaults to blue, resourceborderColor. π΅--border-widthinteger β Width of the border surrounding each tile. Defaults to3, resourceborderWidth.--event-chancefraction β The chance, per iteration, for an event to occur (such as tweaking the orientation of a tile), in the range0..1. Defaults to0.01, resourceeventChance. π²--frictionfraction β How much friction there is in the system, in the range0..1. This is the amount by which velocities are damped per iteration. Defaults to0.05, resourcefriction.--springinessfraction β How springy the tiles are, in the range0..1. This is the fraction of an orientation that gets turned into a velocity towards the center (resting point). Defaults to0.1, resourcespringiness. π±--tile-sizeinteger β Size (width and height) of each tile, not including the outer edge of the border. Defaults to120, resourcetileSize.--transferencefraction β How much a tile's neighbors affect it, in the range0..1. This is the fraction of an orientation of a neighbor that gets turned into a velocity in the same direction. Defaults to0.025, resourcetransference. π«Ά--fpsβ Display the current frame rate and CPU load.
π ENVIRONMENT π
DISPLAYβ to get the default host and display number.XENVIRONMENTβ to get the name of a resource file that overrides the global resources stored in theRESOURCE_MANAGERproperty.XSCREENSAVER_WINDOWβ The window ID to use with--root.
π X RESOURCES π
There are resource equivalents for each option, noted above. yes, each one. we told you already, but we're telling you again because consistency is cute β¨
π BUGS π
twangshould have more interesting events. (lowkey true, no cap)- Ways of speeding it up need to be investigated. It's kinda sluggish, especially on hugeass displays. π
okay but like, fair warning, that second one is not me being cute, that's a real performance note. hugeass displays = pain. π«
π₯ SEE ALSO π₯
xscreensaver(1)β the mothership π
π COPYRIGHT π
Copyright Β© 2002 by Dan Bornstein. All rights reserved.
Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. No representations are made about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
that's the legal bit verbatim, bestie β don't let me paraphrase the fine print π
π§ AUTHOR π§
Dan Bornstein <danfuzz@milk.com>. π
and that's the whole thing!! this page came to you courtesy of X Version 11, version 6.15 (30-Mar-2026) β mwah, go pluck some tiles πβ¨π
π¦ where this page comes from
- alpine 3.24: xscreensaver-doc 6.15-r0 Β· GPL-2.0-or-later GPL-3.0-or-later 0BSD MIT
- arch rolling: xscreensaver 6.15-1 Β· LicenseRef-XScreenSaver
- nixpkgs unstable: xscreensaver 6.15
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms