Thursday, May 2, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1910  / 3 Years ago, fri, july 2, 2021, 1:37:26

Is there any application to display scrolling text on top of all windows in Ubuntu?
Something like Tickr, but what I want is an application that can display my own text, something like



appname "my own text"


then "my own text" is scrolling around the desktop. Can Tickr do that instead of RSS feed?


More From » application-development

 Answers
3

If you put the following into an .xml file and run tickr <filename>.xml, then you'll have what you want:



<rss version="0.91">
<channel>
<title>askubuntu.com is rad!</title>
</channel>
</rss>


You could then have the behavior you want (i.e., running appname "my own text") by writing a script. For example, put the following into a file called my-tickr.sh:



#! /bin/bash`
echo "<rss version="0.91">" > .tmp.tickr
echo "<channel>" >> .tmp.tickr
echo "<title> $1 </title>" >>.tmp.tickr
echo "</channel>" >>.tmp.tickr
echo "</rss>" >>.tmp.tickr

tickr .tmp.tickr &


Then run chmod +x my-tickr.sh to make the script executable. Then running ./my-tickr.sh 'askubuntu is rad!' should behave as desired. Note the use of single quotes around 'askubuntu is rad!': this ensures that each character in your string is interpreted literally (Thanks to January for pointing this out).


[#36002] Friday, July 2, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
giccolla

Total Points: 161
Total Questions: 124
Total Answers: 117

Location: Aland Islands
Member since Wed, Nov 17, 2021
3 Years ago
;