WMCALC(1)

๐Ÿ’– WMCALC(1) ๐Ÿ’–

okay bestie, welcome to the General Commands Manual entry for wmcalc โ€” yes, the little calculator that lives in your dock and never, ever leaves. she's tiny, she's dockable, she's everything. โœจ


๐ŸŒธ NAME ๐ŸŒธ

wmcalc โ€” a dockable calculator application ๐Ÿงฎ๐Ÿ’…


โœจ SYNOPSIS โœจ

wmcalc [-g geometry] [-d display] [-v] [-f configfile] [-h]

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

so this manual page is gonna walk you through wmcalc real quick. fun fact: this page was written for the Debian GNU/Linux distribution because the original program literally does not have a manual page. we're doing the Lord's work out here. ๐Ÿ™โœจ

wmcalc is a program built to be a simple calculator โ€” she does the basic ops: addition, subtraction, multiplication, division, square, and squareroot. but here's the twist that makes her different from every other calculator program out there: she's designed to take up very little desktop space. like, barely any. so you can literally just leave her running on your desktop at all times. ๐Ÿ’–

she's intended to be placed in the WindowMaker dock, or in Wharf under Afterstep, though she should run just as well under any window manager. no gatekeeping here. ๐Ÿซถ

*IMPORTANT*: this calculator, because of her simple target, does not respect the proper mathematical operations order, and operations are executed in the order they are inserted. bestie I need you to hear me on this one. she is NOT doing PEMDAS. she is doing vibes. ๐Ÿ˜ญ๐Ÿ’€

Buttons are defined as:

 ____________________
|       x00          |  x = 1 for Left Mouse Button
| 0 1 2 3 4 5 6 7 8 9|  x = 2 for Middle Mouse Button
|--------------------|  x = 3 for Right Mouse Button
|x01 x02 x03 x04 x05 |
|x06 x07 x08 x09 x10 |  Note: the numbers 0..9 are the
|x11 x12 x13 x14 x15 |         indicators for memory cells
|x16 x17 x18 x19 x20 |         0..9 respectively
 --------------------

๐ŸŽ€ Button Functions ๐ŸŽ€

  • 100 โ€” Reinitialize the calculator. (100 = Left Mouse Button on Display) ๐Ÿ”„
  • 200 โ€” Clear all the memory registers (0..10) ๐Ÿงน
  • 300 โ€” Clear the current number being entered only โœ‚๏ธ
  • x11 โ€” Start a program defined by CalcStart variable in config file ๐Ÿš€
  • 1yy โ€” Perform function shown on button ๐Ÿ‘†
  • 2yy โ€” Recall number from memory location [0-9] to display for calculation if yy = 2,3,4, 7,8,9, 12, 13, 14, 17 otherwise, can run a user-defined function (not implemented) ๐Ÿ“ฅ
  • 3yy โ€” Store Displayed number in memory location [0-9] if yy = 2,3,4, 7,8,9, 12,13,14, 17 otherwise, can run a user-defined function (not implemented) ๐Ÿ“ค
  • 1xx โ€” Hopefully the other functions are obvious from their button graphics. ๐Ÿ™ˆ

๐Ÿ’… OPTIONS ๐Ÿ’…

  • -g <geometry> โ€” Window Geometry โ€” ie: 64x64+10+10 ๐Ÿ“
  • -d <display> โ€” Display โ€” ie: 127.0.0.1:0.0 ๐Ÿ–ฅ๏ธ
  • -f <filename> โ€” Full path to configuration file. ๐Ÿ“
  • -v โ€” Verbose Mode. ๐Ÿ—ฃ๏ธ
  • -h โ€” Help. ๐Ÿ†˜

๐Ÿ“ FILES ๐Ÿ“

  • /etc/wmcalc.conf โ€” system wide wmcalc configuration file which will be used for all users who start wmcalc the first time. ๐ŸŒ
  • ~/.wmcalc โ€” The configuration file (.wmcalc) is written by wmcalc whenever the user requests to store a number to memory. This file is automatically created the first time a user launches wmcalc with /etc/wmcalc.conf as template. As a part of this process, a file is written to /tmp. If /tmp is not accessible, it tries in the user's home directory, as defined by the environment variable HOME. This file is erased as soon as it is written over the main configuration file. ๐Ÿ—‚๏ธโœจ

๐ŸŒˆ CONFIGURATION ๐ŸŒˆ

The configuration file is case sensitive. A # starts a comment, and lines consisting entirely of whitespace are ignored. The syntax is simply:

  • <variable> <content> โ€” Where <variable> and <content> need to be separated by a Tab \t and not spaces. like, bestie, actually press Tab. I'm so serious. ๐Ÿ˜ค
  • mem0 - mem9 โ€” Calculator Memory Locations. These must all exist, though they may be in any order. ๐Ÿ”ข
  • CalcStart โ€” The CalcStart variable is intended to allow the user to start a larger calculator for more complicated needs. Everything after the tab '\t' character is sent unmodified in a system() call, so anything you can type at the command prompt may be put here. ๐Ÿง ๐Ÿ’ฅ
  • ImagChar โ€” The ImagChar variable allows the user to choose between 'i' and 'j' to represent the sqrt(-1). ๐Ÿงš

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

wmcalc was written by Edward H. Flora <ehflora@access1.net>, and is licensed under the terms of the GNU General Public License. ๐Ÿ“œ

This manual page was written by Gordon Fraser <gordon@freakzone.net>, for the Debian GNU/Linux system (but may be used by others). ๐Ÿซถ


okay that's the whole thing, you're officially a wmcalc girlie now ๐Ÿ’– she's from September 20, 2001 (yes she's vintage, yes she still ate) and she's part of the WMCALC(1) manual, General Commands Manual. go forth and calculate. no cap. ๐Ÿ’…โœจ๐ŸŒธ

๐Ÿ“ฆ where this page comes from