Difference between revisions of "Osd cat"

From Linuxintro
imported>ThorstenStaerk
(image)
imported>ThorstenStaerk
Line 3: Line 3:
 
[[File:Snapshot-osdcat.png|thumb]]
 
[[File:Snapshot-osdcat.png|thumb]]
  
The example is based on SUSE Linux 11.3, but should be same or similar on any distribution:
+
Choose the font using xfontsel.
 +
 
 +
The following example worked on SUSE Linux 11.3
 
  [[yast]] -i xosd
 
  [[yast]] -i xosd
 
  [[echo]] "hello world" | osd_cat -A center -p bottom -f \
 
  [[echo]] "hello world" | osd_cat -A center -p bottom -f \
 
   -adobe-helvetica-*-*-*-*-24-*-*-*-*-*-*-* -cgreen -s 5
 
   -adobe-helvetica-*-*-*-*-24-*-*-*-*-*-*-* -cgreen -s 5
Choose the font using xfontsel.
+
 
 +
The following example worked on Ubutu Linux 11.10
 +
[[sudo]] [[apt-get]] [[install]] [[osd_cat]]
 +
echo "hello world" | osd_cat -A center -p bottom -f -*-*-bold-*-*-*-36-120-*-*-*-*-*-* -cgreen -s 5

Revision as of 10:20, 31 December 2011

osd_cat is a command that writes something directly onto your graphical screen. In the following example "hello world" is written.

Snapshot-osdcat.png

Choose the font using xfontsel.

The following example worked on SUSE Linux 11.3

yast -i xosd
echo "hello world" | osd_cat -A center -p bottom -f \
 -adobe-helvetica-*-*-*-*-24-*-*-*-*-*-*-* -cgreen -s 5

The following example worked on Ubutu Linux 11.10

sudo apt-get install osd_cat
echo "hello world" | osd_cat -A center -p bottom -f -*-*-bold-*-*-*-36-120-*-*-*-*-*-* -cgreen -s 5