2010-07-01 04:02:06 +02:00
|
|
|
Root-tail displays a given file anywhere on your X11 root window, i.e.
|
|
|
|
it is kind of tail -f for multiple files using your desktop background
|
|
|
|
as output window.
|
2010-05-11 20:00:10 +02:00
|
|
|
|
|
|
|
It has configurable colors, fonts, wrapping, justifying, continuation
|
2010-07-01 04:02:06 +02:00
|
|
|
indicators, geometry, and more and can interleave multiple files also
|
|
|
|
making it a sort of multi-tail.
|
2010-05-11 20:00:10 +02:00
|
|
|
|
2010-07-01 03:56:19 +02:00
|
|
|
For example:
|
2010-05-11 20:00:10 +02:00
|
|
|
root-tail -g 800x250+100+50 -font 10x20 /var/log/messages,green \
|
|
|
|
-font 12x24 /var/log/secure,red,'ALERT'
|
2010-05-13 00:23:09 +02:00
|
|
|
|
2010-07-01 04:02:06 +02:00
|
|
|
By default root-tail doesn't seem to work on XFCE. You need to
|
|
|
|
explicitly specify the ID of the display to use it (by using the "-id"
|
|
|
|
flag of root-tail). Use the xprop command to find the active root
|
|
|
|
display, and run this through the cut command to strip out the ID number
|
|
|
|
for insertion into the root-tail `-id` field.
|
2010-05-13 00:23:09 +02:00
|
|
|
|
|
|
|
It looks a little something like this:
|
|
|
|
|
|
|
|
root-tail -g 800x250+100+50 -font fixed /var/log/messages,green \
|
|
|
|
/var/log/secure,red,'ALERT' -id $(xprop -root XFCE_DESKTOP_WINDOW |\
|
|
|
|
awk '{ print $NF }')
|