[openbox] Openbox popup

Mikael Magnusson mangosoft at comhem.se
Wed Mar 16 15:56:37 EST 2005


On Wed, 16 Mar 2005, John Russell wrote:

> On Wed, 16 Mar 2005 11:04:20 -0800, Sirirat Traiviratana
> <straivir at ucsd.edu> wrote:
>> WOW Thanks,
>> I didn't expect to get the answer this fast. You guys rock!
>>
>> Here is the summary, in case someone else might look for it.
>>
>> ======vol.sh======
>> #!/bin/bash
>> val=`amixer sget $1 | grep % | cut -d [ -f2 | cut -d % -f1 | head -n 1`
>> osd_cat --pos=middle --align=center --color=white --shadow=2
>> --shadowcolour=black --barmode=percentage --percentage=$val --delay=1
>> --age=1 --font=-*-verdana-bold-i-*-*-24-*-*-*-*-*-*-*
>> ================
>
> All I get when using osd_cat is
>
> ABORT: Requested font not found
>
> when using any font except fixed which is illegible.  I even used
> xfontsel to create the real font string.  Nothing works.  Even the
> veranda one you have here.  Am I don't something else wrong?

If you're trying to use a font called veranda i can see why it doesn't 
find the font :) also be sure to quote the * or the shell might try to 
expand them to filenames.

> John
>
>>
>>
>> Horst Gutmann wrote:
>>
>>> John Russell wrote:
>>>
>>>> On Wed, 16 Mar 2005 07:49:26 -0800, Sirirat Traiviratana
>>>> <straivir at ucsd.edu> wrote:
>>>>
>>>>> Is there a way to use some script to use openbox popup to display some
>>>>> information?
>>>>
>>>>
>>>>
>>>> You can use zenity or xdialog to pop up stuff, but you'll have to
>>>> click to dismiss it.  It sounds like you want more of a screen overlay
>>>> kind of thing.  I'm not sure how to do that.
>>>>
>>>>
>>>> John
>>>>
>>>>> Regards,
>>>>> Sirirat
>>>>>
>>>
>>> Hm... or what about some XOSD action? :-)
>>> `echo "Hello World" | osd_cat`
>>>
>>> Horst
>>>
>>>
>>
>> --
>> Sirirat Traiviratana
>> UCSD Graduate Researcher
>> Mechanical and Aerospace Engineering Dept.
>> L304, EBU-II, UCSD, La Jolla, CA,92093
>> 1.858.761.7740
>> http://straivir-2-res.resnet.ucsd.edu/
>>
>>
>

--
Mikael Magnusson



More information about the openbox mailing list