Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'd like to display a very large message, e.g. 1" high letters on the screen of a workstation.

I.e. something like "Today's stock price is $xx"

I could use gnome-terminal if I could set the font scale high enough, and the height to just one.

I tried zenity, but there doesn't seem to be a way to set the font size or get rid of the icon and 'ok' button.

Any recommendations?


ETA: the best I've done so far is

gnome-terminal --hide-menubar --zoom 4 --geometry 50x3 -e watch-stock.sh
share|improve this question
    
You could create a captcha and use that as background image. –  ott-- Aug 12 '13 at 18:09

2 Answers 2

up vote 1 down vote accepted

A nice & funny way to do it

$ xx='12'
$ figlet "Today's stock price is $xx"
 _____         _             _           _             _    
|_   _|__   __| | __ _ _   _( )___   ___| |_ ___   ___| | __
  | |/ _ \ / _` |/ _` | | | |// __| / __| __/ _ \ / __| |/ /
  | | (_) | (_| | (_| | |_| | \__ \ \__ \ || (_) | (__|   < 
  |_|\___/ \__,_|\__,_|\__, | |___/ |___/\__\___/ \___|_|\_\
                       |___/                                
            _            _       _ ____  
 _ __  _ __(_) ___ ___  (_)___  / |___ \ 
| '_ \| '__| |/ __/ _ \ | / __| | | __) |
| |_) | |  | | (_|  __/ | \__ \ | |/ __/ 
| .__/|_|  |_|\___\___| |_|___/ |_|_____|

Just run

sudo apt-get install figlet

before ;)

A programmable text box using QT & python

qt+python

The code :

#!/usr/bin/python
# simple text box with configurable font size
# require the price as script argument
myFontSize = 60

from PyQt4 import QtGui
from PyQt4 import QtCore
import sys

def main():

    app     = QtGui.QApplication(sys.argv)
    palette = QtGui.QPalette()
    label   = QtGui.QLabel("Today's stock price is $" + sys.argv[1])

    palette.setColor(QtGui.QPalette.Foreground,QtCore.Qt.green)
    label.setPalette(palette)

    label.resize(800, 150)
    font = label.font()
    font.setPixelSize(myFontSize)
    label.setFont(font)

    label.setWindowTitle('PyQt QLabel Text Color')
    label.show()

    sys.exit(app.exec_())


if __name__ == '__main__':
    main()

I run the script like this in a terminal :

python script.py 12

You need to install python's qt binding :

sudo apt-get install python-qt4
share|improve this answer
    
+1 for writing a script. Of course, now I have to install Qt4 to use it... –  Edward Falk Jun 15 '13 at 1:49
    
Yes, I think you need python-qt4, tell me if I'm wrong. –  sputnick Jun 15 '13 at 2:27

What about using sm (screen-message) It works from your terminal, although you can assign a key combination for quick access it's also available on your browser (tested in iceweasel/firefox) The link to the author page is here --> http://www.joachim-breitner.de/projects

Good luck!

share|improve this answer
    
That's a nice little app. Unfortunately, it completely fills the screen, while I just wanted a window with large text. I'm sure I'll find other uses for this app, though. –  Edward Falk Aug 12 '13 at 18:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.