commands.sh

sm

linux

Display a short message fullscreen.

More info →

Options (4)

-i, --invertboolean

Display a message with inverted colors

Example: sm {{[-i|--invert]}} "{{Hello World!}}"
-f, --foregroundboolean

Display a message with a custom foreground color

Example: sm {{[-f|--foreground]}} {{blue}} "{{Hello World!}}"
-b, --backgroundboolean

Display a message with a custom background color

Example: sm {{[-b|--background]}} {{#008888}} "{{Hello World!}}"
-r, --rotateboolean

Display a message rotated 3 times (in steps of 90 degrees, counterclockwise)

Example: sm {{[-r|--rotate]}} {{3}} "{{Hello World!}}"

Examples (6)

Display a message in full-screen

sm "Hello World!"

Display a message with inverted colors

sm [-i|--invert] "Hello World!"

Display a message with a custom foreground color

sm [-f|--foreground] blue "Hello World!"

Display a message with a custom background color

sm [-b|--background] #008888 "Hello World!"

Display a message rotated 3 times (in steps of 90 degrees, counterclockwise)

sm [-r|--rotate] 3 "Hello World!"

Display a message using the output from another command

echo "Hello World!" | sm -
made by @shridhargupta | data from tldr-pages