SM(1)
π SM(1) β General Commands Manual π
okay bestie, so the manual name here is literally SM (section 1, General Commands Manual) and likeβ¦ it's about sm. iconic. let's get into it β¨
πΈ NAME πΈ
sm β displays a short text fullscreen. that's it. that's the whole vibe. big text, whole screen, slay.
β¨ SYNOPSIS β¨
sm [ OPTIONS ] [ text | - ]
π¦ DESCRIPTION π¦
okay so Screen Message will display a given multi-line message as large as possible, fullscreen, and black on white. as large as possible, bestie β it's giving main character energy π
you can specify the text either when launching sm, or edit it while the program is running. your choice, no pressure.
After a short timeout, the text entry and the quit button will disappear, leaving nothing on the screen but the entered text. so clean. so minimalist. so aesthetic. To continue entering text, just start typing or (left-)click anywhere on the screen β it'll wake right back up π«Ά
- To clear the displayed text, press Escape.
- To invert the colors of the text and the background, press Ctrl+I.
- To quit the program, press Ctrl+Q, or Escape twice, or click the "Quit"-button.
π OPTIONS π
[ text | - ]β the text to display at start up. defaults to":-)"(yes really, a little emoticon, adorable). if"-"is passed tosm, it will read the text to display from the standard input, see the REMOTE CONTROLLING SM section below π-f,--foreground=colordescβ define a different color to use for the foreground of the text to display than black. the text string can be in any of the forms accepted byXParseColor; these include name for a color fromrgb.txt, such asDarkSlateGray, or a hex specification such as#3050b2or#35b. so many options, we love options π-b,--background=colordescβ define a different color to use for the background of the text to display than white. for possible values, see above (yes, same deal,XParseColorforms, hex, all that).-i,--invertβ switch the roles for foreground and background colors. useful if you prefer white-on-black. dark mode besties rise π-n,--font=fontspecβ define a different font to use than the default sans-serif font of your system. the fontspec be the complete name for a truetype font (like"DejaVu Sans"or"Bitstream Vera Serif") or just a short font family specification ("serif","sans-serif"). pick your fighter π§-r,--rotate=rotationβ rotates the display by rotation*90 degrees counter-clock-wise. so-r 1rotates the display to the left, and-r 2puts it upside down. chaos mode: activated π-a,--align=alignmentβ aligns the text centered (-a 0), left (-a 1) or right (-a 2). choose your alignment era β--β (double dash) end option parsing. this is used to be able to actually hand over text that starts of with an dash. lowkey essential ngl π«Ά-h,--helpβ this option will give you a short usage message summarizing the recognized options and quits. help a girl out β¨-V,--versionβ this prints the project name together with its version number quits. (yes, that's the original wording, the "and" is missing, i said what i said π)
π REMOTE CONTROLLING SM π
If sm is called with - as a command line argument, it will read the text to be shown from the standard input. It will read the input until it reaches the end of the file, or the form feed character \f, and show the input read so far at once. Newline characters at the beginning or the end are ignored. The input is assumed to be UTF-8 encoded (see utf8(7)). iykyk π§
This can be used to create automatic displays of changing data or similar tricks. For example, the following command will create a simple digital watch:
(while sleep 1; do date +%T; printf \\f; done) | sm -
like?? a whole digital watch?? we're literally engineers now π
π AUTHOR π
This manual page was written by Joachim Breitner <mail@joachim-breitner.de> and updated by Gerfried Fuchs <rhonda@deb.at> to reflect additions for commandline option handling. legends, both of them π«Ά
that's the whole page bestie β no notes, no cap, periodt. π
signing off β this was the SM(1) page, dated November 24, 2012, from the General Commands Manual. catch you in the next readme, mwah π
π¦ where this page comes from
- alpine 3.24: screen-message-doc 0.29-r0 Β· GPL-2.0-or-later
- arch rolling: screen-message 0.29-2 Β· GPL-2.0-or-later
- debian trixie: sm 0.29-2 Β· GPL-2.0-only
- nixos 26.05: screen-message 0.29
- nixpkgs unstable: screen-message 0.29
- ubuntu questing: sm 0.29-2
- ubuntu resolute: sm 0.29-2build1 Β· GPL-2.0-only
- ubuntu stonking: sm 0.29-2build1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms