[openbox] Openbox popup

Sirirat Traiviratana straivir at ucsd.edu
Wed Mar 16 14:04:20 EST 2005


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.

====== part of rc.xml =======
  <keybind key="W-Up">
      <action name="Execute"><execute>amixer sset 'Master' 
1+</execute></action>
      <action name="Execute"><execute>/home/nui/nfs/coding/script/vol.sh 
Master</execute></action>
  </keybind>
  <keybind key="W-Down">
      <action name="Execute"><execute>amixer sset 'Master' 
1-</execute></action>
      <action name="Execute"><execute>/home/nui/nfs/coding/script/vol.sh 
Master</execute></action>
  </keybind>
  <keybind key="C-W-Up">
      <action name="Execute"><execute>amixer sset 'PCM' 
1+</execute></action>
      <action name="Execute"><execute>/home/nui/nfs/coding/script/vol.sh 
PCM</execute></action>
  </keybind>
  <keybind key="C-W-Down">
      <action name="Execute"><execute>amixer sset 'PCM' 
1-</execute></action>
      <action name="Execute"><execute>/home/nui/nfs/coding/script/vol.sh 
PCM</execute></action>
  </keybind>
======================


======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-*-*-*-*-*-*-*
================




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/




More information about the openbox mailing list