You are not logged in.
Hi, does anyone knows how to make the current time appear in the openbox root menu... it's just a little feature I would like to have instead running gkrellm or any other program to use as a clock
Thank you,
Grey
Offline
From the manual
Pipe menus
Openbox allows for dynamic menus, built on-the-fly from scripts. These are referred to as "Pipe menus" since the script's output is piped back to Openbox and used for the menu.A Pipe menu can be created by placing the following into a menu file:
<menu id="ID" label="TITLE" execute="COMMAND" />
The generated Pipe menu can be referenced just like any other menu.
COMMAND is a command which is executed. The output from this command is parsed and turned into the menu. The output from the script should be a menu, something like:
<openbox_pipe_menu> <item label="LABEL"> ACTIONS </item> </openbox_pipe_menu>
Which means you should be able to do
<menu id="time" label="postlogic kicks ass" execute="your_time_command" />
I have never attempted anything like this, and I'm at work, so I can't actually try it.
Just experiment a bit, and be sure to post your results!
Offline
Got it working
you need to create a menu entery like above calling for "mytime.py"
the script :
http://shabi.homelinux.org/mytime.py
Grey
Offline
Great. I'll try it myself when I get home.
Offline